@@ -34,9 +34,9 @@ export default {
3434 input: ' src/index.js' ,
3535 output: {
3636 dir: ' output' ,
37- format: ' cjs' ,
37+ format: ' cjs'
3838 },
39- plugins: [commonjs ()],
39+ plugins: [commonjs ()]
4040};
4141```
4242
@@ -66,8 +66,8 @@ commonjs({
6666 ' !node_modules/logform/index.js' ,
6767 ' !node_modules/logform/format.js' ,
6868 ' !node_modules/logform/levels.js' ,
69- ' !node_modules/logform/browser.js' ,
70- ],
69+ ' !node_modules/logform/browser.js'
70+ ]
7171});
7272```
7373
@@ -250,7 +250,7 @@ This is in line with how other bundlers handle this situation and is also the mo
250250
251251 var dep$1 = /* #__PURE__*/ Object .freeze ({
252252 __proto__: null ,
253- default: dep,
253+ default: dep
254254 });
255255
256256 console .log (dep$1 .default );
@@ -281,7 +281,7 @@ For these situations, you can change Rollup's behaviour either globally or per m
281281 enumerable: true ,
282282 get : function () {
283283 return n[k];
284- },
284+ }
285285 }
286286 );
287287 });
@@ -309,7 +309,9 @@ For these situations, you can change Rollup's behaviour either globally or per m
309309 import * as dep$1 from ' dep' ;
310310
311311 function getDefaultExportFromNamespaceIfNotNamed (n ) {
312- return n && Object .prototype .hasOwnProperty .call (n, ' default' ) && Object .keys (n).length === 1 ? n[' default' ] : n;
312+ return n && Object .prototype .hasOwnProperty .call (n, ' default' ) && Object .keys (n).length === 1
313+ ? n[' default' ]
314+ : n;
313315 }
314316
315317 var dep = getDefaultExportFromNamespaceIfNotNamed (dep$1);
@@ -357,9 +359,9 @@ export default {
357359 output: {
358360 file: ' bundle.js' ,
359361 format: ' iife' ,
360- name: ' MyModule' ,
362+ name: ' MyModule'
361363 },
362- plugins: [resolve (), commonjs ()],
364+ plugins: [resolve (), commonjs ()]
363365};
364366```
365367
@@ -369,7 +371,7 @@ Symlinks are common in monorepos and are also created by the `npm link` command.
369371
370372``` js
371373commonjs ({
372- include: / node_modules/ ,
374+ include: / node_modules/
373375});
374376```
375377
@@ -392,11 +394,11 @@ function cjsDetectionPlugin() {
392394 moduleParsed ({
393395 id,
394396 meta: {
395- commonjs: { isCommonJS },
396- },
397+ commonjs: { isCommonJS }
398+ }
397399 }) {
398400 console .log (` File ${ id} is CommonJS: ${ isCommonJS} ` );
399- },
401+ }
400402 };
401403}
402404```
0 commit comments