@rollup/plugin-commonjs 25.0.2 → 25.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/dist/cjs/index.js +2 -5
- package/dist/es/index.js +2 -5
- package/package.json +1 -1
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 = "25.0.
|
|
14
|
+
var version = "25.0.3";
|
|
15
15
|
var peerDependencies = {
|
|
16
16
|
rollup: "^2.68.0||^3.0.0"
|
|
17
17
|
};
|
|
@@ -365,10 +365,7 @@ export function getAugmentedNamespace(n) {
|
|
|
365
365
|
if (typeof f == "function") {
|
|
366
366
|
var a = function a () {
|
|
367
367
|
if (this instanceof a) {
|
|
368
|
-
|
|
369
|
-
args.push.apply(args, arguments);
|
|
370
|
-
var Ctor = Function.bind.apply(f, args);
|
|
371
|
-
return new Ctor();
|
|
368
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
372
369
|
}
|
|
373
370
|
return f.apply(this, arguments);
|
|
374
371
|
};
|
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 = "25.0.
|
|
10
|
+
var version = "25.0.3";
|
|
11
11
|
var peerDependencies = {
|
|
12
12
|
rollup: "^2.68.0||^3.0.0"
|
|
13
13
|
};
|
|
@@ -361,10 +361,7 @@ export function getAugmentedNamespace(n) {
|
|
|
361
361
|
if (typeof f == "function") {
|
|
362
362
|
var a = function a () {
|
|
363
363
|
if (this instanceof a) {
|
|
364
|
-
|
|
365
|
-
args.push.apply(args, arguments);
|
|
366
|
-
var Ctor = Function.bind.apply(f, args);
|
|
367
|
-
return new Ctor();
|
|
364
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
368
365
|
}
|
|
369
366
|
return f.apply(this, arguments);
|
|
370
367
|
};
|