Skip to content

Commit

Permalink
fix: .emitAsset() can't be called twice now
Browse files Browse the repository at this point in the history
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 24e6562
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/rollup/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 24e6562

Please sign in to comment.