Skip to content

Commit 89d4f7d

Browse files
committed
fix: update the file match that webpack should process from node_modules
1 parent 0a08a54 commit 89d4f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.cjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ class ScratchWebpackConfigBuilder {
116116
{
117117
and: [/node_modules/],
118118

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

0 commit comments

Comments
 (0)