How does withWorkflow detect and resolve imports?

HEAD
c1d7c8dAdd support for `"use step"` functions in class instance methods (#777)
This post might have stale content, as HEAD is 975 commits ahead.

How does the withWorkflow Next.js plugin handle detecting imports from the 'workflow' package? Does it hardcode the package name or does it support aliases? How does it resolve the loader path?


END OF POST

How does withWorkflow detect and resolve imports? — vercel/workflow