fix: update the file match that webpack should process from node_modules

This commit is contained in:
Georgi Angelov 2024-09-24 12:21:08 +03:00
parent 0a08a54da0
commit 89d4f7de4c

View file

@ -116,10 +116,10 @@ class ScratchWebpackConfigBuilder {
{ {
and: [/node_modules/], and: [/node_modules/],
// Scratch-paint points to its source (instead of a pre-built version) // Some scratch pakcages point to their source (as opposed to a pre-built version)
// for its browser target. So we need to process it (at the minimum to resolve // for their browser or webpack target. So we need to process them (at the minimum
// the JSX syntax). // to resolve the JSX syntax).
not: [/node_modules[\\/]scratch-paint\//] not: [/node_modules[\\/]scratch-(paint|render|svg-renderer|vm)[\\/]src[\\/]/]
} }
], ],
options: { options: {