2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-09 18:22:26 +03:00

refactor(build): use babel instead of buble

This commit is contained in:
pimlie
2019-03-08 13:20:29 +01:00
committed by Alexander Lichter
parent cd98210acb
commit 4fc67df86a
3 changed files with 261 additions and 13 deletions
+8 -1
View File
@@ -1,6 +1,7 @@
import commonjs from 'rollup-plugin-commonjs'
import nodeResolve from 'rollup-plugin-node-resolve'
import json from 'rollup-plugin-json'
import babel from 'rollup-plugin-babel'
import buble from 'rollup-plugin-buble'
import { terser } from 'rollup-plugin-terser'
@@ -26,7 +27,9 @@ const baseConfig = {
json(),
nodeResolve(),
commonjs(),
buble(),
/*buble({
objectAssign: 'Object.assign'
}),*/
]
}
@@ -40,6 +43,10 @@ export default [{
},
plugins: [
...baseConfig.plugins,
babel({
runtimeHelpers: true,
presets: ['@nuxt/babel-preset-app']
}),
terser()
]
}, {