Skip to content

Commit

Permalink
fix: vitepress的打包逻辑是不是有病
Browse files Browse the repository at this point in the history
  • Loading branch information
mayinrain committed Jan 17, 2025
1 parent ee4eae7 commit 5824e4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ export default defineConfig({
},
ssr: {
// lodash-es 模块是 esm,ssr 渲染的时候编译成 cjs 的引入方式,会引发 nodejs 的模块加载异常错误
noExternal: ['lodash-es', '@fesjs/fes-design', '@fesjs/fes-design/icon'],
noExternal: ['lodash-es', '@fesjs/fes-design', '@fesjs/fes-design/icon', /^echarts(\/.*)?$/],
external: [
'@vue/repl',
/^echarts(\/.*)?$/ // 匹配 echarts 及其所有子路径
]
},
resolve: {
Expand Down

0 comments on commit 5824e4c

Please sign in to comment.