fix: require babel-preset-vue-app directly (#3406)

This commit is contained in:
Tatsuyuki Ishi 2018-06-02 23:20:18 +09:00 committed by Pooya Parsa
parent 8acef8d01e
commit 0db21b1f54

View File

@ -32,7 +32,7 @@ export default class WebpackBaseConfig {
if (!options.babelrc && !options.presets) {
options.presets = [
[
this.builder.nuxt.resolvePath('babel-preset-vue-app'),
require.resolve('babel-preset-vue-app'),
{
targets: this.isServer ? { node: 'current' } : { ie: 9, uglify: true }
}