Skip to content

Commit a2634f7

Browse files
committed
Fix path startsWith
1 parent 511989c commit a2634f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/eval/transpilers/babel/worker/babel-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ self.addEventListener('message', async event => {
350350
{ source: true, nodes: true, generated: true },
351351
]);
352352

353-
const customConfig = path.startsWith('/node_modules')
353+
const customConfig = /^\/node_modules/.test(path)
354354
? {
355355
plugins: [
356356
version === 7

0 commit comments

Comments
 (0)