Skip to content

Commit

Permalink
fix: update babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed May 30, 2017
1 parent 1a55938 commit 9825db4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
18 changes: 7 additions & 11 deletions build/build-ssr.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
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'

rollup
.rollup({
entry: 'packages/docsify-server-renderer/index.js',
plugins: [
babel({
plugins: ['transform-async-to-generator'],
presets: [
[
'es2015',
{
modules: false
}
]
]
async(),
buble({
transforms: {
generator: false
}
})
],
onwarn: function() {}
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
"zoom-image": "^0.1.4"
},
"devDependencies": {
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"cssnano": "^3.10.0",
"eslint": "^3.18.0",
"eslint-config-vue": "^2.0.2",
Expand All @@ -45,7 +43,7 @@
"postcss": "^5.2.16",
"postcss-salad": "^1.0.8",
"rollup": "^0.41.6",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-async": "^1.2.0",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^2.0.0",
Expand Down

0 comments on commit 9825db4

Please sign in to comment.