@rollup/plugin-commonjs 28.0.1 → 28.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -408,7 +408,7 @@ export default {
408
408
  };
409
409
  ```
410
410
 
411
- When bundling to CommonJS, i.e `output.format === 'cjs'`, make sure that you do not set `output.exports` to `'named'`. The default value of `'auto'` will usually work, but you can also set it explicitly to `'default'`. That makes sure that Rollup assigns the default export that was generated for your CommonJS entry point to `module.exports`, and semantics do not change.
411
+ When bundling to CommonJS or IIFE, i.e `output.format === 'cjs'` / `output.format === 'iife'`, make sure that you do not set `output.exports` to `'named'`. The default value of `'auto'` will usually work, but you can also set it explicitly to `'default'`. That makes sure that Rollup assigns the default export that was generated for your CommonJS entry point to `module.exports`, and semantics do not change.
412
412
 
413
413
  ## Using with @rollup/plugin-node-resolve
414
414
 
package/dist/cjs/index.js CHANGED
@@ -11,7 +11,7 @@ var estreeWalker = require('estree-walker');
11
11
  var MagicString = require('magic-string');
12
12
  var isReference = require('is-reference');
13
13
 
14
- var version = "28.0.1";
14
+ var version = "28.0.3";
15
15
  var peerDependencies = {
16
16
  rollup: "^2.68.0||^3.0.0||^4.0.0"
17
17
  };
@@ -376,7 +376,7 @@ export function getDefaultExportFromNamespaceIfNotNamed (n) {
376
376
  }
377
377
 
378
378
  export function getAugmentedNamespace(n) {
379
- if (n.__esModule) return n;
379
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
380
380
  var f = n.default;
381
381
  if (typeof f == "function") {
382
382
  var a = function a () {
package/dist/es/index.js CHANGED
@@ -7,7 +7,7 @@ import { walk } from 'estree-walker';
7
7
  import MagicString from 'magic-string';
8
8
  import isReference from 'is-reference';
9
9
 
10
- var version = "28.0.1";
10
+ var version = "28.0.3";
11
11
  var peerDependencies = {
12
12
  rollup: "^2.68.0||^3.0.0||^4.0.0"
13
13
  };
@@ -372,7 +372,7 @@ export function getDefaultExportFromNamespaceIfNotNamed (n) {
372
372
  }
373
373
 
374
374
  export function getAugmentedNamespace(n) {
375
- if (n.__esModule) return n;
375
+ if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
376
376
  var f = n.default;
377
377
  if (typeof f == "function") {
378
378
  var a = function a () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/plugin-commonjs",
3
- "version": "28.0.1",
3
+ "version": "28.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },