New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(commonjs): support CJS modules re-exporting transpiled ESM modules #1165
fix(commonjs): support CJS modules re-exporting transpiled ESM modules #1165
Commits on Apr 3, 2022
-
feat(commonjs): reimplement dynamic import handling
BREAKING CHANGES: requires Node 12 No longer supports require.cache
-
-
-
-
-
-
-
-
-
-
-
fix(commonjs): make sure type changes of esm imports are tracked
BREAKING CHANGES: Requires at least rollup@2.68.0
-
Commits on Apr 8, 2022
-
Add a test to illustrate problematic re-exported module
This is exhibited for example in Next.js, see https://github.com/vercel/next.js/blob/5feb400aff8e7b8968174b4e339b98ce48412180/packages/next/link.js#L1 which doesn't specify __esModule but re-exports a module that does. See https://www.runpkg.com/?next@12.1.4/link.js and https://www.runpkg.com/?next@12.1.4/dist/client/link.js for the compiled example.
Commits on Apr 16, 2022
Commits on Apr 18, 2022
Commits on Apr 19, 2022
-
Merge remote-tracking branch 'upstream/commonjs/strict-require-order'…
… into cjs-reexport
-
-
-
-
-
Remove comment given other tests do exactly the same
See: - https://github.com/rollup/plugins/blob/d637611a79a2701c359f5f2f6ffb49978070da38/packages/commonjs/test/fixtures/function/transpiled-esm-entry-named/main.js#L3 - https://github.com/rollup/plugins/blob/d637611a79a2701c359f5f2f6ffb49978070da38/packages/commonjs/test/fixtures/function/transpiled-esm-namespace-named/main.js#L5