-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Scripts: Exclude node_modules from source map processing in start script #23711
Conversation
1a646e2
to
b93c82b
Compare
Size Change: 0 B Total Size: 1.13 MB ℹ️ View Unchanged
|
Yep, this is the requested change :) |
@@ -177,6 +177,7 @@ if ( ! isProduction ) { | |||
config.devtool = process.env.WP_DEVTOOL || 'source-map'; | |||
config.module.rules.unshift( { | |||
test: /\.js$/, | |||
exclude: [ /node_modules/ ], |
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.
Is this intended? Just want to make sure we have a way to debug wordpress packages on Core. (not sure this has an impact though, Core might not use wordpress/scripts yet)
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.
There is completely separate process in WP Core, even when we use @wordpress/scripts
we will use a custom webpack config. It shouldn’t have an impact.
Description
Fixes #23513.
From @leoloso:
How has this been tested?
npm start
in the test plugin.