gulp-better-rollup
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -6,3 +6,2 @@ 'use strict' | ||
var PluginError = require('plugin-error') | ||
var rollup = require('rollup') | ||
var path = require('path') | ||
@@ -14,2 +13,9 @@ var applySourceMap = require('vinyl-sourcemaps-apply') | ||
try { | ||
var rollup = require('rollup') | ||
} catch(err) { | ||
console.error('ROLLUP NOT FOUND') | ||
console.warn(`${PLUGIN_NAME} doesn't include rollup out of the box anymore. You need to install your own rollup. Version 1.0.0 or higher.`) | ||
} | ||
// map object storing rollup cache objects for each input file | ||
@@ -16,0 +22,0 @@ var rollupCache = new Map |
{ | ||
"name": "gulp-better-rollup", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Better Gulp plugin for Rollup ES6 module bundler", | ||
@@ -5,0 +5,0 @@ "author": "Mike Kovarik", |
@@ -26,2 +26,8 @@ # gulp-better-rollup | ||
You also need to install your own rollup (version 1.x.x). `gulp-better-rollup` depends on your `rollup` as a peer-dependency. | ||
``` | ||
npm install rollup@^1 --save-dev | ||
``` | ||
## Usage | ||
@@ -97,18 +103,2 @@ | ||
`rollup` allows injection of custom rollup version. | ||
```js | ||
const betterRollup = require('gulp-better-rollup'); | ||
gulp.task('lib-build', () => { | ||
gulp.src('lib/index.js') | ||
.pipe(betterRollup({ | ||
rollup: require('rollup') | ||
plugins: [babel()], | ||
format: 'cjs', | ||
... | ||
})) | ||
}) | ||
``` | ||
#### `outputOptions` | ||
@@ -115,0 +105,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
173
16128
185