-
Notifications
You must be signed in to change notification settings - Fork 205
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
Doesn't Work With Dynamic Import Plug-In #268
Comments
@machineghost Are you saying Because if this is the case, Not sure why Could you see what the output of the file is after the first transformation? |
That module injects calls to Webpack's |
Ah yes, that’s true - does this plugin support require.ensure as well? |
I don't see a direct issue with |
I recently discovered that when you try to use this plug-in with https://github.com/airbnb/babel-plugin-dynamic-import-webpack (which enables the import operator/
import(somePath)
syntax), it doesn't work. For instance:results in:
Presumably this is happening because when
c
importsb
the dynamic import plug-in somehow bypasses this plug-in. Since I wasn't sure which library was responsible I tried submitting a ticket to the dynamic import plugin first (airbnb/babel-plugin-dynamic-import-webpack#40) and got:It would be great if there's any way to do the above, or otherwise make these two plug-ins work together somehow.
The text was updated successfully, but these errors were encountered: