Skip to content

Commit 7b070f2

Browse files
committed
fix site build job
1 parent 3b82d95 commit 7b070f2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vite.config.mts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ const config: UserConfig = {
4747
fs: path.join(dirname, "./docs-svelte-kit/shim/fs.mjs"),
4848
globby: path.join(dirname, "./docs-svelte-kit/shim/globby.mjs"),
4949
tslib: path.join(dirname, "./node_modules/tslib/tslib.es6.js"),
50+
51+
// Alias to CJS
52+
"svelte/compiler": path.join(
53+
dirname,
54+
"./node_modules/svelte/compiler.js",
55+
),
56+
"eslint-visitor-keys": path.join(
57+
dirname,
58+
"./node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs",
59+
),
60+
espree: path.join(dirname, "./node_modules/espree/dist/espree.cjs"),
61+
acorn: path.join(dirname, "./node_modules/acorn/dist/acorn.js"),
5062
},
5163
},
5264
build: {

0 commit comments

Comments
 (0)