提交 d1e81137 编写于 作者: fxy060608's avatar fxy060608

feat(v3): add sourcemap

上级 f5c50f41
......@@ -22,6 +22,7 @@ const {
const runtimePath = '@dcloudio/uni-mp-weixin/dist/mp.js'
const wxsPath = '@dcloudio/uni-mp-weixin/dist/wxs.js'
function getProvides (isAppService) {
if (isAppService) {
return { // app-service
......@@ -44,7 +45,7 @@ function getProvides (isAppService) {
const v3 = {
vueConfig: {
parallel: false,
transpileDependencies: [
transpileDependencies: [
wxsPath,
runtimePath
]
......@@ -73,7 +74,11 @@ const v3 = {
webpackConfig.optimization.splitChunks = false
let devtool = false
let devtool = false
if (isAppService && process.env.NODE_ENV !== 'production') {
devtool = 'eval-source-map'
}
const rules = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册