Skip to content

Commit

Permalink
docs(commonjs): update docs (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyPi committed Aug 11, 2023
1 parent 5ec2abe commit 07329e2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/commonjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,18 @@ For these situations, you can change Rollup's behaviour either globally or per m
import * as dep$1 from 'dep';

function getAugmentedNamespace(n) {
var a = Object.defineProperty({}, '__esModule', { value: true });
if (n.__esModule) return n;
var f = n.default;
if (typeof f == 'function') {
var a = function a() {
if (this instanceof a) {
return Reflect.construct(f, arguments, this.constructor);
}
return f.apply(this, arguments);
};
a.prototype = f.prototype;
} else a = {};
Object.defineProperty(a, '__esModule', { value: true });
Object.keys(n).forEach(function (k) {
var d = Object.getOwnPropertyDescriptor(n, k);
Object.defineProperty(
Expand Down

0 comments on commit 07329e2

Please sign in to comment.