Skip to content

Commit

Permalink
fix: __importDefault add mod default property verfiy, for this issue: m…
Browse files Browse the repository at this point in the history
  • Loading branch information
墨筝 committed Dec 21, 2022
1 parent 3bdc002 commit 6082275
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tslib.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export function __importStar(mod) {
}

export function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
return (mod && mod.__esModule && mod.default) ? mod : { default: mod };
}

export function __classPrivateFieldGet(receiver, state, kind, f) {
Expand Down
2 changes: 1 addition & 1 deletion tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ var __createBinding;
};

__importDefault = function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
return (mod && mod.__esModule && mod.default) ? mod : { "default": mod };
};

__classPrivateFieldGet = function (receiver, state, kind, f) {
Expand Down

0 comments on commit 6082275

Please sign in to comment.