Skip to content
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

Support dynamic import using stable syntax #14

Open
RReverser opened this issue Jul 12, 2017 · 2 comments
Open

Support dynamic import using stable syntax #14

RReverser opened this issue Jul 12, 2017 · 2 comments

Comments

@RReverser
Copy link

import for dynamic imports is currently not stable, and so many codebases still use the old one for code splitting, namely AMD-style require:

require(['static-dep-A', 'static-dep-B'], function (staticDepA, staticDepB) {
...
});

Currently all these cases cause webpack-common-shake to bail out even though they're likely optimizable in the same way.

@bmeck
Copy link

bmeck commented Jul 13, 2017

import() is stage 3 and just pending 2 implementations finishing rollout. What is unstable about it?

@RReverser
Copy link
Author

@bmeck Stage 3 is, not every codebase is using transpilers and edge features. I don't want to dig into that discussion, just explained why some codebases aren't migrated yet while could benefit from this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants