Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-commonjs

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-commonjs - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

4

CHANGELOG.md
# rollup-plugin-commonjs changelog
## 1.4.0
* Generate sourcemaps by default
## 1.3.0

@@ -4,0 +8,0 @@

6

dist/rollup-plugin-commonjs.cjs.js

@@ -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;

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