Skip to content

Commit 346ade1

Browse files
committed
fix
1 parent 1caa8f7 commit 346ade1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

explorer-v2/build-system/shim/assert.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'assert shim';
2+
13
if (typeof module !== 'undefined') {
24
// eslint-disable-next-line no-undef -- ignore
35
module.exports = function () {

explorer-v2/svelte.config.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ const config = {
2525
}
2626
},
2727
plugins: [
28+
stringReplace({
29+
test: /eslint-scope|svelte-eslint-parser.js/u,
30+
search: 'require\\("assert"\\)',
31+
replace: (original) => {
32+
return `(()=>{});//${original}`;
33+
},
34+
flags: ''
35+
}),
2836
stringReplace({
2937
test: /eslint-plugin-svelte3.js/u,
3038
search: 'Object\\.keys\\(__require\\.cache\\)',
@@ -55,10 +63,7 @@ const config = {
5563
replace: (original) => ` // ${original}`,
5664
flags: ''
5765
})
58-
],
59-
optimizeDeps: {
60-
// include: ["assert"],
61-
}
66+
]
6267
}
6368
}
6469
};

0 commit comments

Comments
 (0)