fix: update babel config

This commit is contained in:
qingwei.li 2017-05-30 13:58:05 +08:00
parent 1a5593889e
commit 9825db47af
No known key found for this signature in database
GPG Key ID: B6DDC2F7AE80B2F4
2 changed files with 8 additions and 14 deletions

View File

@ -1,21 +1,17 @@
var rollup = require('rollup') var rollup = require('rollup')
var babel = require('rollup-plugin-babel') var buble = require('rollup-plugin-buble')
var async = require('rollup-plugin-async')
var isProd = process.argv[process.argv.length - 1] !== '--dev' var isProd = process.argv[process.argv.length - 1] !== '--dev'
rollup rollup
.rollup({ .rollup({
entry: 'packages/docsify-server-renderer/index.js', entry: 'packages/docsify-server-renderer/index.js',
plugins: [ plugins: [
babel({ async(),
plugins: ['transform-async-to-generator'], buble({
presets: [ transforms: {
[ generator: false
'es2015', }
{
modules: false
}
]
]
}) })
], ],
onwarn: function() {} onwarn: function() {}

View File

@ -35,8 +35,6 @@
"zoom-image": "^0.1.4" "zoom-image": "^0.1.4"
}, },
"devDependencies": { "devDependencies": {
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"cssnano": "^3.10.0", "cssnano": "^3.10.0",
"eslint": "^3.18.0", "eslint": "^3.18.0",
"eslint-config-vue": "^2.0.2", "eslint-config-vue": "^2.0.2",
@ -45,7 +43,7 @@
"postcss": "^5.2.16", "postcss": "^5.2.16",
"postcss-salad": "^1.0.8", "postcss-salad": "^1.0.8",
"rollup": "^0.41.6", "rollup": "^0.41.6",
"rollup-plugin-babel": "^2.7.1", "rollup-plugin-async": "^1.2.0",
"rollup-plugin-buble": "^0.15.0", "rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^8.0.2", "rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^2.0.0", "rollup-plugin-node-resolve": "^2.0.0",