Skip to content

Commit

Permalink
Follow rollup deprecated warning to use generateBundle instead onwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
rj-hwang committed Mar 12, 2019
1 parent faf2303 commit 589dc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function(options = {}) {
if (!styles.hasOwnProperty(id) || styles[id] != code) styles[id] = code
return ''
},
onwrite(opts) {
generateBundle(opts) {
if (!Object.keys(styles).length) return // nothing to output

const outputRaw = options.raw !== false
Expand Down

0 comments on commit 589dc4b

Please sign in to comment.