broccoli-rollup
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -84,2 +84,3 @@ 'use strict'; | ||
this.linkedModules = false; | ||
this.cache = options.cache === undefined ? true : options.cache; | ||
} | ||
@@ -130,2 +131,7 @@ | ||
// If this a noop post initial build, just bail out | ||
if (this._lastBundle && patches.length === 0) { | ||
return; | ||
} | ||
var options = this._loadOptions(); | ||
@@ -135,3 +141,5 @@ options.entry = this.cachePath + '/' + options.entry; | ||
return require('rollup').rollup(options).then(function (bundle) { | ||
_this._lastBundle = bundle; | ||
if (_this.cache) { | ||
_this._lastBundle = bundle; | ||
} | ||
_this._buildTargets(bundle, options); | ||
@@ -145,4 +153,5 @@ }); | ||
// TODO: support rollup config files | ||
var options = assign({}, this.rollupOptions); | ||
options.cache = this._lastBundle; | ||
var options = assign({ | ||
cache: this._lastBundle | ||
}, this.rollupOptions); | ||
return options; | ||
@@ -149,0 +158,0 @@ } |
{ | ||
"name": "broccoli-rollup", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Rollup integration with broccoli", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -14,3 +14,4 @@ # Usage | ||
entry: 'lib/index.js', | ||
dest: 'my-lib.js' | ||
dest: 'my-lib.js', | ||
// cache: true|false Defaults to true | ||
} | ||
@@ -17,0 +18,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16414
310
42