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

The import.meta.url will blocked in worker because of the null point of document in the build result. #79

Open
fishel-feng opened this issue Jul 31, 2024 · 0 comments

Comments

@fishel-feng
Copy link

I am encountering an issue where if the original package uses import.meta.url, the resulting bundle will access document, which causes a null pointer issue in a worker. Which making the build result of this plugin unusable.
This issue has been fixed in Rollup's UMD build but not in IIFE rollup/rollup#4186
I want to know why IIFE was used for the build instead of UMD format. Is it because the resulting bundle is smaller?
I'm not sure if this is a valid use case for Rollup, but it is blocking my program. If this issue requires support from Rollup, I can submit a bug report.

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

1 participant