diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index dc6e658..0aeeae0 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -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'],