mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-30 02:58:37 +08:00
fix: update babel config
This commit is contained in:
parent
1a5593889e
commit
9825db47af
@ -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() {}
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user