You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to detect exports from bundled webpack output聽#88
Happy to switch to rollup (vite probably?) instead - I'm not particularly married to using webpack (it's just the one I got working (and the one I have by far the most experience with))
FWIW, I think I'll just be checking the exports manually at build time and include an mjs file, which should skip the lexer entirely: jestjs/jest#14661
Activity
liuxingbaoyu commentedon Oct 9, 2023
https://github.com/nodejs/cjs-module-lexer#project-status This project has been frozen, I suspect webpack may have relevant options that will follow this.
SimenB commentedon Oct 9, 2023
Yeah, I noticed that.
Would be cool if we can configure webpack to output compatible code, yeah. Might have to create a manual re-export facade thing if not.
Or just accept interop is not the best and have people use default export.
liuxingbaoyu commentedon Oct 9, 2023
webpack/webpack#13098
rollup/rollup#4826
Unfortunately webpack doesn't support this, although rollup does.
SimenB commentedon Oct 9, 2023
Happy to switch to rollup (vite probably?) instead - I'm not particularly married to using webpack (it's just the one I got working (and the one I have by far the most experience with))
SimenB commentedon Oct 30, 2023
FWIW, I think I'll just be checking the exports manually at build time and include an
mjsfile, which should skip the lexer entirely: jestjs/jest#14661liuxingbaoyu commentedon Oct 31, 2023
Amazing!