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

rollup-plugin-commonjs

Package Overview
Dependencies
Maintainers
3
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 5.0.4 to 5.0.5

5

CHANGELOG.md
# rollup-plugin-commonjs changelog
## master
## 5.0.5
* Fix parenthesis wrapped exports ([#120](https://github.com/rollup/rollup-plugin-commonjs/issues/120))
## 5.0.4

@@ -4,0 +9,0 @@

2

dist/rollup-plugin-commonjs.cjs.js

@@ -400,3 +400,3 @@ 'use strict';

hasDefaultExport = true;
magicString.overwrite( node.start, right.start, ("var " + moduleName + " = ") );
magicString.overwrite( left.start, left.end, ("var " + moduleName) );
} else {

@@ -403,0 +403,0 @@ var name = match[1];

@@ -397,3 +397,3 @@ import { statSync } from 'fs';

hasDefaultExport = true;
magicString.overwrite( node.start, right.start, ("var " + moduleName + " = ") );
magicString.overwrite( left.start, left.end, ("var " + moduleName) );
} else {

@@ -400,0 +400,0 @@ var name = match[1];

{
"name": "rollup-plugin-commonjs",
"version": "5.0.4",
"version": "5.0.5",
"description": "Convert CommonJS modules to ES2015",

@@ -5,0 +5,0 @@ "main": "dist/rollup-plugin-commonjs.cjs.js",

@@ -270,3 +270,3 @@ import acorn from 'acorn';

hasDefaultExport = true;
magicString.overwrite( node.start, right.start, `var ${moduleName} = ` );
magicString.overwrite( left.start, left.end, `var ${moduleName}` );
} else {

@@ -273,0 +273,0 @@ const name = match[1];

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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