Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Update rollup.js
Browse files Browse the repository at this point in the history
Added options that allow for async functions to be parsed
  • Loading branch information
Karolusrex authored Jul 27, 2017
1 parent 62aa0ba commit 2cea073
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2cea073

Please sign in to comment.