未验证 提交 05d5bf58 编写于 作者: fxy060608's avatar fxy060608 提交者: GitHub

Merge pull request #1321 from deangoku/patch-1

兼容@vue/cli-plugin-babel@4
......@@ -159,7 +159,7 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
}
// js preprocess
updateJsLoader(rawRules, 'foo.js', /^babel-loader/, {
updateJsLoader(rawRules, 'foo.js', /^(.*[/\\])?babel-loader/, {
loader: resolve('packages/webpack-preprocess-loader'),
options: jsPreprocessOptions
})
......@@ -264,4 +264,4 @@ module.exports = function configureWebpack (platformOptions, manifestPlatformOpt
}
}, platformWebpackConfig)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册