rollup-plugin-commonjs
Advanced tools
Comparing version 1.3.0 to 1.4.0
# rollup-plugin-commonjs changelog | ||
## 1.4.0 | ||
* Generate sourcemaps by default | ||
## 1.3.0 | ||
@@ -4,0 +8,0 @@ |
@@ -61,2 +61,4 @@ 'use strict'; | ||
var sourceMap = options.sourceMap !== false; | ||
return { | ||
@@ -108,3 +110,3 @@ resolveId: function resolveId(importee, importer) { | ||
if (options.sourceMap) { | ||
if (sourceMap) { | ||
magicString.addSourcemapLocation(node.start); | ||
@@ -181,3 +183,3 @@ magicString.addSourcemapLocation(node.end); | ||
code = magicString.toString(); | ||
var map = options.sourceMap ? magicString.generateMap() : null; | ||
var map = sourceMap ? magicString.generateMap() : null; | ||
@@ -184,0 +186,0 @@ if (usesGlobal) bundleUsesGlobal = true; |
@@ -57,2 +57,4 @@ import { statSync } from 'fs'; | ||
var sourceMap = options.sourceMap !== false; | ||
return { | ||
@@ -104,3 +106,3 @@ resolveId: function resolveId(importee, importer) { | ||
if (options.sourceMap) { | ||
if (sourceMap) { | ||
magicString.addSourcemapLocation(node.start); | ||
@@ -177,3 +179,3 @@ magicString.addSourcemapLocation(node.end); | ||
code = magicString.toString(); | ||
var map = options.sourceMap ? magicString.generateMap() : null; | ||
var map = sourceMap ? magicString.generateMap() : null; | ||
@@ -180,0 +182,0 @@ if (usesGlobal) bundleUsesGlobal = true; |
{ | ||
"name": "rollup-plugin-commonjs", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Convert CommonJS modules to ES2015", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -9,3 +9,2 @@ import { statSync } from 'fs'; | ||
var firstpass = /\b(?:require|module|exports|global)\b/; | ||
@@ -25,2 +24,4 @@ var exportsPattern = /^(?:module\.)?exports(?:\.([a-zA-Z_$][a-zA-Z_$0-9]*))?$/; | ||
const sourceMap = options.sourceMap !== false; | ||
return { | ||
@@ -76,3 +77,3 @@ resolveId ( importee, importer ) { | ||
if ( options.sourceMap ) { | ||
if ( sourceMap ) { | ||
magicString.addSourcemapLocation( node.start ); | ||
@@ -150,3 +151,3 @@ magicString.addSourcemapLocation( node.end ); | ||
code = magicString.toString(); | ||
const map = options.sourceMap ? magicString.generateMap() : null; | ||
const map = sourceMap ? magicString.generateMap() : null; | ||
@@ -153,0 +154,0 @@ if ( usesGlobal ) bundleUsesGlobal = true; |
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
20093
421