Skip to content

Commit

Permalink
Updated rollup to 0.60.1, made code changes to support it (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored and ForsakenHarmony committed Jun 21, 2018
1 parent 8286def commit bf2d068
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .npmrc
@@ -0,0 +1 @@
package-lock=false
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -50,7 +50,7 @@
"gzip-size": "^4.1.0",
"pretty-bytes": "^5.1.0",
"regenerator-runtime": "^0.11.1",
"rollup": "0.59.3",
"rollup": "^0.60.1",
"rollup-plugin-buble": "^0.19.2",
"rollup-plugin-bundle-size": "^1.0.1",
"rollup-plugin-commonjs": "^9.0.0",
Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Expand Up @@ -189,8 +189,8 @@ export default async function microbundle(options) {
inputOptions.cache = cache;
let bundle = await rollup(inputOptions);
cache = bundle;
await bundle.write(outputOptions);
return await getSizeInfo(bundle._code, outputOptions.file);
const { code } = await bundle.write(outputOptions);
return await getSizeInfo(code, outputOptions.file);
}),
);

Expand Down Expand Up @@ -415,8 +415,8 @@ function createConfig(options, entry, format, writeMeta) {
},
],
{
ongenerate({ bundle }, { code }) {
config._code = bundle._code = code;
ongenerate(outputOptions, { code }) {
config._code = code;
},
},
shebangPlugin(),
Expand Down

0 comments on commit bf2d068

Please sign in to comment.