From 2cea0738c2f27e606a44de433bedc99180b8af18 Mon Sep 17 00:00:00 2001 From: Karolusrex Date: Thu, 27 Jul 2017 16:06:06 +0200 Subject: [PATCH] Update rollup.js Added options that allow for async functions to be parsed --- lib/rollup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rollup.js b/lib/rollup.js index ec2c65e..31ba766 100644 --- a/lib/rollup.js +++ b/lib/rollup.js @@ -230,6 +230,10 @@ exports.rollupTree = function(loader, tree, entryPoints, traceOpts, compileOpts, return rollup.rollup({ entry: entryPoint, external: aliasedExternals, + acorn: { + allowReserved: true, + ecmaVersion: 8 + }, plugins: [{ resolveId: function(id, importer, options) { var resolved = importer ? tree[importer].depMap[id] : id;