使用 rsbuild

This commit is contained in:
2024-10-15 12:06:24 +08:00
parent ecdee01e69
commit 4465806812
6 changed files with 1608 additions and 3729 deletions

23
rsbuild.config.ts Normal file
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/,
},
},
},
})