@rollup/plugin-commonjs 16.0.0 → 17.0.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @rollup/plugin-commonjs ChangeLog
2
2
 
3
+ ## v17.0.0
4
+
5
+ _2020-11-30_
6
+
7
+ ### Breaking Changes
8
+
9
+ - feat!: reconstruct real es module from \_\_esModule marker (#537)
10
+
3
11
  ## v16.0.0
4
12
 
5
13
  _2020-10-27_
package/README.md CHANGED
@@ -233,11 +233,7 @@ For these situations, you can change Rollup's behaviour either globally or per m
233
233
  import * as dep$1 from 'dep';
234
234
 
235
235
  function getDefaultExportFromNamespaceIfNotNamed(n) {
236
- return n &&
237
- Object.prototype.hasOwnProperty.call(n, 'default') &&
238
- Object.keys(n).length === 1
239
- ? n['default']
240
- : n;
236
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
241
237
  }
242
238
 
243
239
  var dep = getDefaultExportFromNamespaceIfNotNamed(dep$1);
@@ -252,9 +248,7 @@ For these situations, you can change Rollup's behaviour either globally or per m
252
248
  import * as dep$1 from 'dep';
253
249
 
254
250
  function getDefaultExportFromNamespaceIfPresent(n) {
255
- return n && Object.prototype.hasOwnProperty.call(n, 'default')
256
- ? n['default']
257
- : n;
251
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
258
252
  }
259
253
 
260
254
  var dep = getDefaultExportFromNamespaceIfPresent(dep$1);