Skip to content
Permalink
Browse files

fix: .emitAsset() can't be called twice now

So don't pass in the stub string any more since now it's breaking rollup completely.
  • Loading branch information...
tivac committed Jun 13, 2018
1 parent e87457d commit 24e6562d955fdef27d98a826049a7d3755f84267
Showing with 1 addition and 3 deletions.
  1. +1 −3 packages/rollup/rollup.js
@@ -138,9 +138,7 @@ module.exports = function(opts) {

await Promise.all(
bundles.map(async ({ base, files }) => {
// TODO: docs say that empty string arg to .emitAsset() shouldn't be required
// https://github.com/rollup/rollup/wiki/Plugins#plugin-context
const css = this.emitAsset(`${base}.css`, "");
const css = this.emitAsset(`${base}.css`);

const result = await processor.output({
to : css,

0 comments on commit 24e6562

Please sign in to comment.
You can’t perform that action at this time.