@rollup/plugin-commonjs 25.0.3 → 25.0.4
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 +12 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -299,7 +299,18 @@ For these situations, you can change Rollup's behaviour either globally or per m
|
|
|
299
299
|
import * as dep$1 from 'dep';
|
|
300
300
|
|
|
301
301
|
function getAugmentedNamespace(n) {
|
|
302
|
-
|
|
302
|
+
if (n.__esModule) return n;
|
|
303
|
+
var f = n.default;
|
|
304
|
+
if (typeof f == 'function') {
|
|
305
|
+
var a = function a() {
|
|
306
|
+
if (this instanceof a) {
|
|
307
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
308
|
+
}
|
|
309
|
+
return f.apply(this, arguments);
|
|
310
|
+
};
|
|
311
|
+
a.prototype = f.prototype;
|
|
312
|
+
} else a = {};
|
|
313
|
+
Object.defineProperty(a, '__esModule', { value: true });
|
|
303
314
|
Object.keys(n).forEach(function (k) {
|
|
304
315
|
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
305
316
|
Object.defineProperty(
|
package/dist/cjs/index.js
CHANGED
package/dist/es/index.js
CHANGED