rollup-plugin-commonjs
Advanced tools
Comparing version 2.2.0 to 2.2.1
# rollup-plugin-commonjs changelog | ||
## 2.2.1 | ||
# Prevent false positives with `namedExports` ([#36](https://github.com/rollup/rollup-plugin-commonjs/issues/36)) | ||
## 2.2.0 | ||
@@ -4,0 +8,0 @@ |
@@ -226,3 +226,3 @@ 'use strict'; | ||
if (!sources.length && !uses.module && !uses.exports && !uses.global) { | ||
if (Object.keys(customNamedExports).length) { | ||
if (Object.keys(namedExports).length) { | ||
throw new Error('Custom named exports were specified for ' + id + ' but it does not appear to be a CommonJS module'); | ||
@@ -229,0 +229,0 @@ } |
@@ -222,3 +222,3 @@ import { statSync } from 'fs'; | ||
if (!sources.length && !uses.module && !uses.exports && !uses.global) { | ||
if (Object.keys(customNamedExports).length) { | ||
if (Object.keys(namedExports).length) { | ||
throw new Error('Custom named exports were specified for ' + id + ' but it does not appear to be a CommonJS module'); | ||
@@ -225,0 +225,0 @@ } |
{ | ||
"name": "rollup-plugin-commonjs", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Convert CommonJS modules to ES2015", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
@@ -189,3 +189,3 @@ import { statSync } from 'fs'; | ||
if ( !sources.length && !uses.module && !uses.exports && !uses.global ) { | ||
if ( Object.keys( customNamedExports ).length ) { | ||
if ( Object.keys( namedExports ).length ) { | ||
throw new Error( `Custom named exports were specified for ${id} but it does not appear to be a CommonJS module` ); | ||
@@ -192,0 +192,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
31508