Skip to content

Commit

Permalink
upd: repl打包时作为外部依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
mayinrain committed Apr 2, 2024
1 parent 6fd8d0f commit 7de83c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export default defineConfig({
},
ssr: {
// lodash-es 模块是 esm,ssr 渲染的时候编译成 cjs 的引入方式,会引发 nodejs 的模块加载异常错误
noExternal: ['lodash-es', '@fesjs/fes-design', '@fesjs/fes-design/icon', '@vue/repl']
noExternal: ['lodash-es', '@fesjs/fes-design', '@fesjs/fes-design/icon'],
external: ['@vue/repl']
},
resolve: {
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
Expand Down

0 comments on commit 7de83c5

Please sign in to comment.