Adding format and edit files breaks imports in TS projects using node module resolution
TedDriggs opened this issue · 3 comments
After this commit, I'm unable to figure out how to get webpack to play nicely with this library.
Adding the dependency and doing nothing else, I get Uncaught Error: Cannot find module "."
. If I suppress the require
function using imports-loader
, everything used to work, but now I get an error because require
is no longer a function.
This may be an issue with my understanding of how Webpack/TS handle different module resolution strategies being used concurrently, but I'm now somewhat stuck.
I added ESM support: added a lib/esm folder, package.json-"module" points to that folder.
There was also a fix to break up the recursive dependency.
@TedDriggs Let me know if all works for you...
That worked perfectly; thank you!