Skip to content

Commit

Permalink
fix(vite): 针对 Vue3 默认关闭 sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Mar 14, 2023
1 parent f0527ca commit 36d3624
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/taro-plugin-vue3/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ function viteCommonPlugin (): PluginOption {
},
resolve: {
dedupe: ['vue']
},
build: {
sourcemap: false // https://github.com/vitejs/vite-plugin-vue/issues/35
}
})
}
Expand Down

0 comments on commit 36d3624

Please sign in to comment.