From 80dba191d3596f26144dd9f00dc280a8db3c8143 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 30 May 2017 13:38:20 +0800 Subject: [PATCH] fix: update babel config --- build/build-ssr.js | 1 + package.json | 1 + 2 files changed, 2 insertions(+) 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",