chore: do not process more modules than necessary

This commit is contained in:
Georgi Angelov 2024-09-17 12:19:47 +03:00
parent e4ad003025
commit 9a7d9dce10

View file

@ -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: {