Skip to content

Commit ed0caa1

Browse files
committed
chore: fix build site script
1 parent 3119299 commit ed0caa1

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

explorer-v2/build-system/pre-build/webpack.config.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,19 @@ export default [
8787
},
8888
{
8989
...base,
90+
externals: {
91+
'node:process': '$$inject_process$$'
92+
},
9093
entry: {
9194
'svelte/compiler': resolve('../../node_modules/svelte/src/compiler/index.js')
92-
}
95+
},
96+
plugins: [
97+
new WrapperPlugin({
98+
test: /svelte\/compiler\.js/,
99+
header: `
100+
const $$inject_process$$ = undefined;
101+
`
102+
})
103+
]
93104
}
94105
];

explorer-v2/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@
1414
"dependencies": {
1515
"@fontsource/fira-mono": "^5.1.0",
1616
"@typescript-eslint/parser": "^7.18.0",
17-
"eslint": "^8.57.0",
17+
"eslint": "^8.57.1",
1818
"eslint-scope": "^7.2.2",
1919
"esquery": "^1.6.0",
2020
"pako": "^2.1.0",
21-
"svelte": "^5.0.0-next.245",
21+
"svelte": "^5.0.0-next.264",
2222
"svelte-eslint-parser": "link:..",
2323
"tslib": "^2.7.0"
2424
},
2525
"devDependencies": {
26-
"@sveltejs/adapter-static": "^3.0.4",
27-
"@sveltejs/kit": "^2.5.26",
26+
"@sveltejs/adapter-static": "^3.0.5",
27+
"@sveltejs/kit": "^2.7.0",
2828
"@sveltejs/vite-plugin-svelte": "^3.1.2",
2929
"monaco-editor": "^0.51.0",
3030
"prettier": "^3.3.3",
31-
"prettier-plugin-svelte": "^3.2.6",
31+
"prettier-plugin-svelte": "^3.2.7",
3232
"string-replace-loader": "^3.1.0",
33-
"typescript": "^5.6.2",
34-
"vite": "^5.4.4",
35-
"webpack": "^5.94.0",
33+
"typescript": "^5.6.3",
34+
"vite": "^5.4.8",
35+
"webpack": "^5.95.0",
3636
"webpack-cli": "^5.1.4",
3737
"wrapper-webpack-plugin": "^2.2.2"
3838
}

0 commit comments

Comments
 (0)