使用 rsbuild

This commit is contained in:
xuyue committed 2024-10-15 12:06:24 +08:00
1 parent ecdee01e69
commit 4465806812
6 files changed
+1608 -3729

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { defineConfig } from "@rsbuild/core"
import { pluginVue } from "@rsbuild/plugin-vue"
export default defineConfig({
plugins: [pluginVue()],
html: {
template: "./index.html",
},
source: {
entry: {
index: "./src/main.ts",
},
},
performance: {
chunkSplit: {
strategy: "split-by-experience",
forceSplitting: {
"lib-ui": /node_modules[\\/]naive-ui/,
"lib-cm": /node_modules[\\/]@codemirror/,
},
},
},
})