Socket
Socket
Sign inDemoInstall

gulp-rollup

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rollup - npm Package Compare versions

Comparing version 2.14.0 to 2.15.0

18

index.js

@@ -74,3 +74,7 @@ 'use strict';

var entryFiles = Promise.resolve(options.entry).then(function(entryFiles) {
var inputWasNamedEntry = Boolean(options.entry);
var inputName = inputWasNamedEntry ? 'options.entry' : 'options.input';
var entryFiles = Promise.resolve(
inputWasNamedEntry ? options.entry : options.input
).then(function(entryFiles) {
if (typeof entryFiles === 'string') {

@@ -82,7 +86,7 @@ return [entryFiles];

})) {
throw new Error('options.entry must include only strings!');
throw new Error(inputName + ' must include only strings!');
}
return entryFiles;
} else {
throw new Error('options.entry must be a string or array of strings!');
throw new Error(inputName + ' must be a string or array of strings!');
}

@@ -129,3 +133,3 @@ });

options.sourceMap = haveSourcemaps;
options.sourcemap = haveSourcemaps;

@@ -139,3 +143,7 @@ var vinylSystem = hypothetical({ files: vinylFiles, allowRealFiles: true, impliedExtensions: impliedExtensions });

var options = cloneWithBlacklist(options1);
options.entry = entryFile;
if (inputWasNamedEntry) {
options.entry = entryFile;
} else {
options.input = entryFile;
}
if (separateCaches && Object.prototype.hasOwnProperty.call(separateCaches, entryFile)) {

@@ -142,0 +150,0 @@ options.cache = separateCaches[entryFile];

{
"name": "gulp-rollup",
"version": "2.14.0",
"version": "2.15.0",
"description": "gulp plugin for Rollup ES6 module bundler",

@@ -29,3 +29,3 @@ "main": "index.js",

"readable-stream": "^2.1.4",
"rollup": "^0.45.1",
"rollup": "^0.49.3",
"rollup-plugin-hypothetical": "^1.1.0"

@@ -32,0 +32,0 @@ },

@@ -24,3 +24,3 @@ # gulp-rollup [![npm][npm-image]][npm-url] [![Dependency Status][david-image]][david-url] [![Build Status][travis-image]][travis-url]

// any option supported by Rollup can be set here.
entry: './src/main.js'
input: './src/main.js'
}))

@@ -43,3 +43,3 @@ .pipe(gulp.dest('./dist'));

.pipe(rollup({
entry: './src/main.js'
input: './src/main.js'
}))

@@ -53,5 +53,5 @@ .pipe(sourcemaps.write())

If an array of strings is passed into `options.entry`, a separate bundle will be rolled up from each entry point. They will be processed in parallel and output in no particular order. As usual, each bundle will have the same path as the associated entry file.
If an array of strings is passed into `options.input`, a separate bundle will be rolled up from each entry point. They will be processed in parallel and output in no particular order. As usual, each bundle will have the same path as the associated entry file.
In addition, a Promise that resolves to a string or array of strings can be passed into `options.entry`. This is to make it more convenient to use asynchronous methods to locate entry files.
In addition, a Promise that resolves to a string or array of strings can be passed into `options.input`. This is to make it more convenient to use asynchronous methods to locate entry files.

@@ -68,3 +68,3 @@ ## Options

rollup: require('rollup'),
entry: './src/main.js'
input: './src/main.js'
}))

@@ -94,3 +94,3 @@ //...

.pipe(rollup({
entry: ['./src/main1.js', './src/main2.js'],
input: ['./src/main1.js', './src/main2.js'],
separateCaches: caches

@@ -119,3 +119,3 @@ }))

.pipe(rollup({
entry: ['./src/main1.js', './src/main2.js'],
input: ['./src/main1.js', './src/main2.js'],
cache: cache,

@@ -122,0 +122,0 @@ generateUnifiedCache: true

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc