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

Dynamic imports broken with 2.0.0 #53

Closed
heathsnee opened this issue Sep 23, 2022 · 1 comment · Fixed by #71
Closed

Dynamic imports broken with 2.0.0 #53

heathsnee opened this issue Sep 23, 2022 · 1 comment · Fixed by #71
Labels
bug Something isn't working

Comments

@heathsnee
Copy link

heathsnee commented Sep 23, 2022

I updated version from 1.0.0 to 2.0.0
and my dynamic imports from javascript files are broken now

code:

import('./polyfills').then(() => /* ... */)

output:

BEFORE:

()=>import("./polyfills.js"),["assets/polyfills.js","assets/browser.js"])

AFTER:

()=>import((chrome!=null?chrome:browser).runtime.getURL("./polyfills.js")),[])

Where the build output for ./polyfills is assets/polyfills.js

@samrum samrum added the bug Something isn't working label Sep 25, 2022
@samrum
Copy link
Owner

samrum commented Sep 25, 2022

Can you provide a little more info about the layout of the files you're using/importing? Maybe push an example to a repo somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants