diff --git a/rsbuild.config.ts b/rsbuild.config.ts index 07fcea4..855f2fe 100644 --- a/rsbuild.config.ts +++ b/rsbuild.config.ts @@ -9,12 +9,13 @@ export default defineConfig({ template: "./index.html", }, source: { - include: [/node_modules[\\/]marked[\\/]/], + // include: [/node_modules[\\/]marked[\\/]/], entry: { index: "./src/main.ts", }, }, output: { + target: "web", polyfill: "usage", }, tools: { @@ -39,16 +40,4 @@ export default defineConfig({ }, }, }, - performance: { - chunkSplit: { - // strategy: "split-by-experience", - strategy: "split-by-module", - // forceSplitting: { - // "lib-ui": /node_modules[\\/]naive-ui[\\/]/, - // "lib-cm": /node_modules[\\/]@codemirror[\\/]/, - // "lib-marked": /node_modules[\\/]marked[\\/]/, - // "lib-hljs": /node_modules[\\/]highlight\.js[\\/]/, - // }, - }, - }, })