mirror of
https://github.com/scratchfoundation/scratch-webpack-configuration.git
synced 2024-11-27 10:05:37 -05:00
chore: do not process more modules than necessary
This commit is contained in:
parent
e4ad003025
commit
9a7d9dce10
1 changed files with 5 additions and 1 deletions
|
@ -115,7 +115,11 @@ class ScratchWebpackConfigBuilder {
|
|||
exclude: [
|
||||
{
|
||||
and: [/node_modules/],
|
||||
not: [/node_modules[\\/].*scratch/]
|
||||
|
||||
// Scratch-paint points to its source (instead of a pre-built version)
|
||||
// for its browser target. So we need to process it (at the minimum to resolve
|
||||
// the JSX syntax).
|
||||
not: [/node_modules[\\/]scratch-paint\//]
|
||||
}
|
||||
],
|
||||
options: {
|
||||
|
|
Loading…
Reference in a new issue