Skip to content

Commit 598993b

Browse files
committed
fix(build): h5 error
1 parent 5baf028 commit 598993b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default defineConfig({
3434
minify: false,
3535
rollupOptions: {
3636
// 请确保外部化那些你的库中不需要的依赖
37-
external: ['vue', 'vue-router'],
37+
external: ['vue', 'vue-router', '@tarojs/taro'],
3838
output: {
3939
banner,
4040
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量

0 commit comments

Comments
 (0)