-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
dynamic import at top level fails #64
Comments
I don't believe Meteor's dynamic import functionality will currently work with this package. Some more work is likely required. You might be better off using webpack's code splitting functionality. |
How do I do that? |
To be honest I'm not sure, as I haven't used it before. If you have any
luck, please let me know.
…On Tue, Apr 2, 2019 at 10:30 AM Sudhanshu ***@***.***> wrote:
How do I do that?
Webpack's code splitting with dynamic imports also uses the same syntax,
right? Should I remove dynamic-import from meteor packages?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB-PgQwxB9aWlO-nf-mn-IEpFIzgJmKwks5vc5O3gaJpZM4cXwWi>
.
|
@s7dhansh @abecks Meteor-Webpack supports dynamic imports by serving chunks as assets;
I think there is a problem in dev-middleware package about calculation of output files. |
@ardatan sorry I have very limited understanding of what you are saying. Can you let me know a fix that I can try? |
A)
fails with an error:
If I remove the Promises, it works:
B)
Ironically enough, if I replace (B) with (A) now (while meteor is running), the app starts working. It fails again when I restart meteor. Can someone guide me on fixing/debugging this?
The text was updated successfully, but these errors were encountered: