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
Code splitting build uses local name instead of chunk name #2713
Labels
Comments
It looks like it could be related to using rollup-plugin-node-resolve and importing the directory name instead of |
Belay that, I see I am wrong |
9 tasks
Fix at #2714 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How Do We Reproduce?
Dynamic imports (
import('./path/to/module')
) build using the path to your local module insrc
, instead of being replaced with the chunk-hash filename, if the index.js of the module you're importing only re-exports from other files.Example of issue here: https://github.com/coffeedoughnuts/rollup-code-split-bug with more details and steps to reproduce in README
Expected Behavior
dynamic imports build to be
import('./chunk-[hash].js')
Actual Behavior
dynamic imports are unchanged from source (
import('./lib')
)The text was updated successfully, but these errors were encountered: