target SSR bundle to current node version for legacy build support

This commit is contained in:
Pooya Parsa 2018-06-01 16:55:02 +04:30
parent 3d2a7b29d1
commit 35ee689473

View File

@ -34,7 +34,7 @@ export default class WebpackBaseConfig {
[
this.builder.nuxt.resolvePath('babel-preset-vue-app'),
{
targets: this.isServer ? { node: '8.0.0' } : { ie: 9, uglify: true }
targets: this.isServer ? { node: 'current' } : { ie: 9, uglify: true }
}
]
]