diff --git a/build/build-ssr.js b/build/build-ssr.js index 258738957..d8084e5ab 100644 --- a/build/build-ssr.js +++ b/build/build-ssr.js @@ -7,6 +7,7 @@ rollup entry: 'packages/docsify-server-renderer/index.js', plugins: [ babel({ + plugins: ['transform-async-to-generator'], presets: [ [ 'es2015', diff --git a/package.json b/package.json index ad0d89a74..9079e474f 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "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",