Skip to content
Permalink
Browse files

fix: onwrite not returning the promise

  • Loading branch information...
tivac committed Nov 21, 2017
1 parent 623be71 commit 9ab15dec373c885d9185a5cada432bcdfab3f36a
Showing with 3 additions and 1 deletion.
  1. +3 −1 packages/rollup/rollup.js
@@ -99,9 +99,10 @@ module.exports = function(opts) {
},

onwrite : function(bundle, result) {
result.css.then(function(data) {
return result.css.then((data) => {
if(options.css) {
mkdirp.sync(path.dirname(options.css));

fs.writeFileSync(
options.css,
data.css
@@ -110,6 +111,7 @@ module.exports = function(opts) {

if(options.json) {
mkdirp.sync(path.dirname(options.json));

fs.writeFileSync(
options.json,
JSON.stringify(data.compositions, null, 4)

0 comments on commit 9ab15de

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