From 9a4560bf16fc4aa252a4c5374f7261bd7215bb9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Heine=20n=C3=A9=20Lang?= Date: Mon, 11 Dec 2017 22:24:54 +0100 Subject: [PATCH 01/13] Always wrap in options.external It's safer to check `options.external` immediately before usage, since e. g. later plugins might change it. --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 5c265f8..ca06ee2 100644 --- a/src/index.js +++ b/src/index.js @@ -124,10 +124,10 @@ export default function commonjs ( options = {} ) { }) .filter( Boolean ); - const isExternal = options.external ? - Array.isArray( options.external ) ? id => ~options.external.indexOf( id ) : - options.external : - () => false; + const isExternal = id => options.external ? + Array.isArray( options.external ) ? ~options.external.indexOf( id ) : + options.external(id) : + false; resolvers.unshift( id => isExternal( id ) ? false : null ); From 2bc1aa36bf7db7ad5f81928913f6c1cda8bd9da7 Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Tue, 26 Dec 2017 10:57:59 +0100 Subject: [PATCH 02/13] Support static template literals Closes #265. --- src/transform.js | 4 ++-- test/form/constant-template-literal/input.js | 2 ++ test/form/constant-template-literal/output.js | 11 +++++++++++ test/form/dynamic-template-literal/input.js | 3 +++ test/form/dynamic-template-literal/output.js | 12 ++++++++++++ 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 test/form/constant-template-literal/input.js create mode 100644 test/form/constant-template-literal/output.js create mode 100644 test/form/dynamic-template-literal/input.js create mode 100644 test/form/dynamic-template-literal/output.js diff --git a/src/transform.js b/src/transform.js index eb12e45..8387cdb 100644 --- a/src/transform.js +++ b/src/transform.js @@ -91,14 +91,14 @@ export function transformCommonjs ( code, id, isEntry, ignoreGlobal, ignoreRequi if ( !node ) return; if ( node.type !== 'CallExpression' ) return; if ( node.callee.name !== 'require' || scope.contains( 'require' ) ) return; - if ( node.arguments.length !== 1 || node.arguments[0].type !== 'Literal' ) return; // TODO handle these weird cases? + if ( node.arguments.length !== 1 || (node.arguments[0].type !== 'Literal' && (node.arguments[0].type !== 'TemplateLiteral' || node.arguments[0].expressions.length > 0) ) ) return; // TODO handle these weird cases? if ( ignoreRequire( node.arguments[0].value ) ) return; return true; } function getRequired ( node, name ) { - const source = node.arguments[0].value; + const source = node.arguments[0].type === 'Literal' ? node.arguments[0].value : node.arguments[0].quasis[0].value.cooked; const existing = required[ source ]; if ( existing === undefined ) { diff --git a/test/form/constant-template-literal/input.js b/test/form/constant-template-literal/input.js new file mode 100644 index 0000000..2a43283 --- /dev/null +++ b/test/form/constant-template-literal/input.js @@ -0,0 +1,2 @@ +var foo = require(`tape`); +console.log(foo); diff --git a/test/form/constant-template-literal/output.js b/test/form/constant-template-literal/output.js new file mode 100644 index 0000000..781cf36 --- /dev/null +++ b/test/form/constant-template-literal/output.js @@ -0,0 +1,11 @@ +import 'tape'; +import foo from 'commonjs-proxy:tape'; + +console.log(foo); + +var input = { + +}; + +export default input; +export { input as __moduleExports }; diff --git a/test/form/dynamic-template-literal/input.js b/test/form/dynamic-template-literal/input.js new file mode 100644 index 0000000..12767b6 --- /dev/null +++ b/test/form/dynamic-template-literal/input.js @@ -0,0 +1,3 @@ +var pe = 'pe'; +var foo = require(`ta${pe}`); +console.log(foo); diff --git a/test/form/dynamic-template-literal/output.js b/test/form/dynamic-template-literal/output.js new file mode 100644 index 0000000..514eb55 --- /dev/null +++ b/test/form/dynamic-template-literal/output.js @@ -0,0 +1,12 @@ +import * as commonjsHelpers from 'commonjsHelpers'; + +var pe = 'pe'; +var foo = commonjsHelpers.commonjsRequire(`ta${pe}`); +console.log(foo); + +var input = { + +}; + +export default input; +export { input as __moduleExports }; From 4ab91c715906be4679dee8766a4e316a9baa708a Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Tue, 26 Dec 2017 11:34:24 +0100 Subject: [PATCH 03/13] Add back test Originally added in 9687b2db3d64e88ae629017d4d44846bb59a3991, removed in c191a130190811f9e498e1805f16294a8a38e383. --- test/test.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 37655c2..04941e7 100644 --- a/test/test.js +++ b/test/test.js @@ -252,6 +252,20 @@ describe( 'rollup-plugin-commonjs', () => { assert.equal( (await executeBundle( bundle )).exports, 42 ); }); + it( 'identifies named exports from object literals', async () => { + const bundle = await rollup({ + input: 'samples/named-exports-from-object-literal/main.js', + plugins: [ commonjs() ] + }); + + const { code } = await bundle.generate({ + format: 'cjs' + }); + + const fn = new Function ( 'module', 'assert', code ); + fn( {}, assert ); + }); + it( 'can ignore references to `global`', async () => { const bundle = await rollup({ input: 'samples/ignore-global/main.js', @@ -450,4 +464,4 @@ describe( 'rollup-plugin-commonjs', () => { assert.equal( warns.length, 0 ); }); }); -}); \ No newline at end of file +}); From 7e8a8c45b5f937bd5ede6180eee06589d8003cba Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Tue, 26 Dec 2017 12:26:21 +0100 Subject: [PATCH 04/13] Add back support for module.exports objects This was broken in 8a3e99e9d554161348a0a2c4db721bb18822299f. Closes #267. --- src/transform.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/transform.js b/src/transform.js index eb12e45..b6fd675 100644 --- a/src/transform.js +++ b/src/transform.js @@ -359,10 +359,6 @@ export function transformCommonjs ( code, id, isEntry, ignoreGlobal, ignoreRequi wrapperStart = `var ${moduleName} = ${HELPERS_NAME}.createCommonjsModule(function (${args}) {\n`; wrapperEnd = `\n});`; - - Object.keys( namedExports ) - .filter( key => !blacklist[ key ] ) - .forEach( addExport ); } else { const names = []; @@ -396,6 +392,7 @@ export function transformCommonjs ( code, id, isEntry, ignoreGlobal, ignoreRequi str: declaration, name }); + delete namedExports[name]; } defaultExportPropertyAssignments.push( `${moduleName}.${name} = ${deconflicted};` ); @@ -409,6 +406,9 @@ export function transformCommonjs ( code, id, isEntry, ignoreGlobal, ignoreRequi }\n};`; } } + Object.keys( namedExports ) + .filter( key => !blacklist[ key ] ) + .forEach( addExport ); const defaultExport = /__esModule/.test( code ) ? `export default ${HELPERS_NAME}.unwrapExports(${moduleName});` : From cd78e4753957f5bc056e7615ed57d8c75bf92d88 Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Thu, 25 Jan 2018 08:24:31 -0600 Subject: [PATCH 05/13] chore(): update dependency on rollup to 0.55.0 and correct tests based on correct sourcemap output. --- package-lock.json | 6 +++--- package.json | 2 +- test/test.js | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8c520ba..a97e383 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1435,9 +1435,9 @@ } }, "rollup": { - "version": "0.50.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.50.0.tgz", - "integrity": "sha512-7RqCBQ9iwsOBPkjYgoIaeUij606mSkDMExP0NT7QDI3bqkHYQHrQ83uoNIXwPcQm/vP2VbsUz3kiyZZ1qPlLTQ==", + "version": "0.55.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.55.0.tgz", + "integrity": "sha512-uCwDXz2qHQ0XsPekrLIeIEORSF32Zfk1H057ENgb+sj84m10pWaG2YGQSvF8kvyf0WLcrzk2TzYuC/+iZP4hyA==", "dev": true }, "rollup-plugin-buble": { diff --git a/package.json b/package.json index 2ba2ea2..d4b7fba 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "locate-character": "^2.0.1", "mocha": "^4.0.1", "require-relative": "^0.8.7", - "rollup": "^0.50.0", + "rollup": "^0.55.0", "rollup-plugin-buble": "^0.16.0", "rollup-plugin-node-resolve": "^3.0.0", "shx": "^0.2.2", diff --git a/test/test.js b/test/test.js index 37655c2..0902a96 100644 --- a/test/test.js +++ b/test/test.js @@ -130,13 +130,14 @@ describe( 'rollup-plugin-commonjs', () => { let generatedLoc = locator( '42' ); let loc = smc.originalPositionFor( generatedLoc ); // 42 - assert.equal( loc.source, 'samples/sourcemap/foo.js' ); + console.log(JSON.stringify(generated, null, 2)); + assert.equal( loc.source, 'foo.js' ); assert.equal( loc.line, 1 ); assert.equal( loc.column, 15 ); generatedLoc = locator( 'log' ); loc = smc.originalPositionFor( generatedLoc ); // log - assert.equal( loc.source, 'samples/sourcemap/main.js' ); + assert.equal( loc.source, 'main.js' ); assert.equal( loc.line, 2 ); assert.equal( loc.column, 8 ); }); From d8879a82237f8a4ee68bfaffc6a6f830f6c59d3d Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Thu, 25 Jan 2018 08:42:38 -0600 Subject: [PATCH 06/13] fix(): allow for rollup to use multiple entry points with experimentalCodeSplitting. --- src/index.js | 19 ++++++++++++------- test/samples/multiple-entry-points/2.js | 4 ++++ test/samples/multiple-entry-points/3.js | 5 +++++ test/samples/multiple-entry-points/4.js | 3 +++ test/samples/multiple-entry-points/b.js | 5 +++++ test/samples/multiple-entry-points/c.js | 7 +++++++ test/test.js | 20 +++++++++++++++++++- 7 files changed, 55 insertions(+), 8 deletions(-) create mode 100644 test/samples/multiple-entry-points/2.js create mode 100644 test/samples/multiple-entry-points/3.js create mode 100644 test/samples/multiple-entry-points/4.js create mode 100644 test/samples/multiple-entry-points/b.js create mode 100644 test/samples/multiple-entry-points/c.js diff --git a/src/index.js b/src/index.js index 5c265f8..a847a2c 100644 --- a/src/index.js +++ b/src/index.js @@ -67,8 +67,8 @@ export default function commonjs ( options = {} ) { Array.isArray( options.ignore ) ? id => ~options.ignore.indexOf( id ) : () => false; - let entryModuleIdPromise = null; - let entryModuleId = null; + let entryModuleIdsPromise = null; + const entryModuleIds = []; function resolveId ( importee, importer ) { if ( importee === HELPERS_ID ) return importee; @@ -133,9 +133,14 @@ export default function commonjs ( options = {} ) { resolveUsingOtherResolvers = first( resolvers ); - entryModuleIdPromise = resolveId( options.input || options.entry ).then( resolved => { - entryModuleId = resolved; - }); + const entryModules = [].concat( options.input || options.entry ); + entryModuleIdsPromise = Promise.all( + entryModules.map( entry => + resolveId( entry ).then( resolved => { + entryModuleIds.push( resolved ); + }) + ) + ); }, resolveId, @@ -168,7 +173,7 @@ export default function commonjs ( options = {} ) { if ( !filter( id ) ) return null; if ( extensions.indexOf( extname( id ) ) === -1 ) return null; - return entryModuleIdPromise.then( () => { + return entryModuleIdsPromise.then( () => { const {isEsModule, hasDefaultExport, ast} = checkEsModule( code, id ); if ( isEsModule ) { if ( !hasDefaultExport ) @@ -182,7 +187,7 @@ export default function commonjs ( options = {} ) { return; } - const transformed = transformCommonjs( code, id, id === entryModuleId, ignoreGlobal, ignoreRequire, customNamedExports[ id ], sourceMap, allowDynamicRequire, ast ); + const transformed = transformCommonjs( code, id, entryModuleIds.indexOf(id) !== -1, ignoreGlobal, ignoreRequire, customNamedExports[ id ], sourceMap, allowDynamicRequire, ast ); if ( !transformed ) return; commonjsModules.set( id, true ); diff --git a/test/samples/multiple-entry-points/2.js b/test/samples/multiple-entry-points/2.js new file mode 100644 index 0000000..0875d7d --- /dev/null +++ b/test/samples/multiple-entry-points/2.js @@ -0,0 +1,4 @@ +function second () { + console.log('second'); +} +exports.second = second; \ No newline at end of file diff --git a/test/samples/multiple-entry-points/3.js b/test/samples/multiple-entry-points/3.js new file mode 100644 index 0000000..340f55e --- /dev/null +++ b/test/samples/multiple-entry-points/3.js @@ -0,0 +1,5 @@ +function third () { + console.log('third'); +} + +exports.third = third; diff --git a/test/samples/multiple-entry-points/4.js b/test/samples/multiple-entry-points/4.js new file mode 100644 index 0000000..04404fe --- /dev/null +++ b/test/samples/multiple-entry-points/4.js @@ -0,0 +1,3 @@ +export function fourth () { + console.log('fourth'); +} diff --git a/test/samples/multiple-entry-points/b.js b/test/samples/multiple-entry-points/b.js new file mode 100644 index 0000000..d348811 --- /dev/null +++ b/test/samples/multiple-entry-points/b.js @@ -0,0 +1,5 @@ +import { second } from './2'; +import { third } from './3'; + +second(); +third(); diff --git a/test/samples/multiple-entry-points/c.js b/test/samples/multiple-entry-points/c.js new file mode 100644 index 0000000..3025ef7 --- /dev/null +++ b/test/samples/multiple-entry-points/c.js @@ -0,0 +1,7 @@ +import { second } from './2'; +import { third } from './3'; +import { fourth } from './4'; + +second(); +third(); +fourth(); diff --git a/test/test.js b/test/test.js index 0902a96..0f59ce0 100644 --- a/test/test.js +++ b/test/test.js @@ -130,7 +130,6 @@ describe( 'rollup-plugin-commonjs', () => { let generatedLoc = locator( '42' ); let loc = smc.originalPositionFor( generatedLoc ); // 42 - console.log(JSON.stringify(generated, null, 2)); assert.equal( loc.source, 'foo.js' ); assert.equal( loc.line, 1 ); assert.equal( loc.column, 15 ); @@ -142,6 +141,25 @@ describe( 'rollup-plugin-commonjs', () => { assert.equal( loc.column, 8 ); }); + it( 'supports multiple entry points for experimentalCodeSplitting', async () => { + const bundle = await rollup({ + input: [ + 'samples/multiple-entry-points/b.js', + 'samples/multiple-entry-points/c.js' + ], + experimentalCodeSplitting: true, + plugins: [ commonjs() ] + }); + + const generated = await bundle.generate({ + format: 'cjs', + }); + + assert.equal(Object.keys(generated).length, 3); + assert.equal(generated.hasOwnProperty('./b.js'), true); + assert.equal(generated.hasOwnProperty('./c.js'), true); + }); + it( 'handles references to `global`', async () => { const bundle = await rollup({ input: 'samples/global/main.js', From 262bf8b08c3997de482319f8bc96fffd584a5746 Mon Sep 17 00:00:00 2001 From: lukastaegert Date: Fri, 26 Jan 2018 17:27:54 +0100 Subject: [PATCH 07/13] Update changelog --- CHANGELOG.md | 4 ++++ package-lock.json | 18 +++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dacf108..a3b3596 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # rollup-plugin-commonjs changelog +## 8.x.x + +* Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272)) + ## 8.2.4 * Don't import default from ES modules that don't export default ([#206](https://github.com/rollup/rollup-plugin-commonjs/issues/206)) diff --git a/package-lock.json b/package-lock.json index 8c520ba..8871189 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1595,6 +1595,15 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", @@ -1605,15 +1614,6 @@ "strip-ansi": "4.0.0" } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "strip-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", From 370bf07c26ef670883f253a7246e597a92273137 Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Fri, 26 Jan 2018 11:01:43 -0600 Subject: [PATCH 08/13] chore(): ensure the order of entryModuleIds does not get changed. --- src/index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index a847a2c..9faf80b 100644 --- a/src/index.js +++ b/src/index.js @@ -68,7 +68,6 @@ export default function commonjs ( options = {} ) { () => false; let entryModuleIdsPromise = null; - const entryModuleIds = []; function resolveId ( importee, importer ) { if ( importee === HELPERS_ID ) return importee; @@ -135,11 +134,7 @@ export default function commonjs ( options = {} ) { const entryModules = [].concat( options.input || options.entry ); entryModuleIdsPromise = Promise.all( - entryModules.map( entry => - resolveId( entry ).then( resolved => { - entryModuleIds.push( resolved ); - }) - ) + entryModules.map( entry => resolveId( entry )) ); }, @@ -173,7 +168,7 @@ export default function commonjs ( options = {} ) { if ( !filter( id ) ) return null; if ( extensions.indexOf( extname( id ) ) === -1 ) return null; - return entryModuleIdsPromise.then( () => { + return entryModuleIdsPromise.then( (entryModuleIds) => { const {isEsModule, hasDefaultExport, ast} = checkEsModule( code, id ); if ( isEsModule ) { if ( !hasDefaultExport ) From cbd6ab9b4eeb61249ee8f94c4f6b4a954d219efe Mon Sep 17 00:00:00 2001 From: lukastaegert Date: Fri, 26 Jan 2018 18:02:40 +0100 Subject: [PATCH 09/13] Update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3b3596..b2ac99d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ # rollup-plugin-commonjs changelog -## 8.x.x +## 8.3.0 * Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272)) +* Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271)) ## 8.2.4 From 1c3adf3abb070c6a44ef7b03265efe0c796d4a04 Mon Sep 17 00:00:00 2001 From: lukastaegert Date: Fri, 26 Jan 2018 18:45:42 +0100 Subject: [PATCH 10/13] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2ac99d..1d60b3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272)) * Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271)) +* Fix when `options.external` is modified by other plugins ([#264](https://github.com/rollup/rollup-plugin-commonjs/issues/264)) ## 8.2.4 From a255f44976c2cc5ed39e5869b83780340cf7be4e Mon Sep 17 00:00:00 2001 From: lukastaegert Date: Fri, 26 Jan 2018 18:52:06 +0100 Subject: [PATCH 11/13] Update changelog --- CHANGELOG.md | 3 ++- rollup.config.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d60b3e..f0a031a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,10 @@ ## 8.3.0 +* Handle multiple entry points ([#283](https://github.com/rollup/rollup-plugin-commonjs/issues/283)) * Extract named exports from exported object literals ([#272](https://github.com/rollup/rollup-plugin-commonjs/issues/272)) -* Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271)) * Fix when `options.external` is modified by other plugins ([#264](https://github.com/rollup/rollup-plugin-commonjs/issues/264)) +* Recognize static template strings in require statements ([#271](https://github.com/rollup/rollup-plugin-commonjs/issues/271)) ## 8.2.4 diff --git a/rollup.config.js b/rollup.config.js index 95c6aef..c9bd226 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -9,15 +9,16 @@ export default { }) ], external: Object.keys( pkg.dependencies ).concat([ 'fs', 'path' ]), - sourcemap: true, output: [ { format: 'es', - file: pkg.module + file: pkg.module, + sourcemap: true }, { format: 'cjs', - file: pkg.main + file: pkg.main, + sourcemap: true } ] }; From d195bab2719f21d71749de239fef6159924c2480 Mon Sep 17 00:00:00 2001 From: lukastaegert Date: Fri, 26 Jan 2018 18:53:10 +0100 Subject: [PATCH 12/13] 8.3.0 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 172f9a8..93cd28b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rollup-plugin-commonjs", - "version": "8.2.6", + "version": "8.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d4b7fba..fd0d3d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rollup-plugin-commonjs", - "version": "8.2.6", + "version": "8.3.0", "description": "Convert CommonJS modules to ES2015", "main": "dist/rollup-plugin-commonjs.cjs.js", "module": "dist/rollup-plugin-commonjs.es.js", From d3167f582389dc340b785efd0e5758fd24ab71ff Mon Sep 17 00:00:00 2001 From: Lukas Taegert Date: Mon, 5 Mar 2018 20:04:44 +0100 Subject: [PATCH 13/13] 8.4.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 93cd28b..99ed478 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "rollup-plugin-commonjs", - "version": "8.3.0", + "version": "8.4.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fd0d3d3..2723664 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rollup-plugin-commonjs", - "version": "8.3.0", + "version": "8.4.1", "description": "Convert CommonJS modules to ES2015", "main": "dist/rollup-plugin-commonjs.cjs.js", "module": "dist/rollup-plugin-commonjs.es.js",