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

fix(template-webpack): only run asset relocator loader on node_modules folder #3060

Merged
merged 4 commits into from Nov 14, 2022

Conversation

MarshallOfSound
Copy link
Member

Fixes #3055

The reason this plugin does this is long and complicated but it's easy to just not run the plugin on app-code and limit it to node_modules. If you have node_modules code that does this pattern of assuming webpack will make the worker (a) that's weird and (b) you can just exclude that module in a similar way.

This should fix it by default for like 99% of folks though.

@erickzhao erickzhao self-requested a review November 9, 2022 19:31
@erickzhao
Copy link
Member

wfm locally, waiting for ci to pass before merging

@erickzhao erickzhao changed the title fix: do not run the asset relocator on internal code, only node_modules fix(template-webpack): only run asset relocator loader on node_modules folder Nov 9, 2022
@erickzhao erickzhao merged commit f86eb28 into main Nov 14, 2022
@erickzhao erickzhao deleted the do-not-relocate-own-code branch November 14, 2022 19:40
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

Successfully merging this pull request may close these issues.

Webpack template rules don't work with Webpack 5 Web Workers
3 participants