mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix: require babel-preset-vue-app directly (#3406)
This commit is contained in:
parent
8acef8d01e
commit
0db21b1f54
@ -32,7 +32,7 @@ export default class WebpackBaseConfig {
|
|||||||
if (!options.babelrc && !options.presets) {
|
if (!options.babelrc && !options.presets) {
|
||||||
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 }
|
targets: this.isServer ? { node: 'current' } : { ie: 9, uglify: true }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user