-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
fix(build): declare moduleSideEffects for vite:modulepreload-polyfill #13099
fix(build): declare moduleSideEffects for vite:modulepreload-polyfill #13099
Conversation
Run & review this pull request in StackBlitz Codeflow. |
cf92a99
to
88d64af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this is only caused because you've configured rollup with rollupOptions.treeshake.moduleSideEffects: false
, but I don't think this addition hurts so sounds fine to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't look like this file is used. Could we remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just removed it, I forgot to delete it.
|
0587617
to
cff99bf
Compare
Description
Add
moduleSideEffects: true
property tovite:modulepreload-polyfill
. The polyfill is effectful so it needs be declared as such otherwise it could be removed by Rollup.Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).