Skip to content

Commit

Permalink
fix(commonjs): isRestorableCompiledEsm should also trigger code tra…
Browse files Browse the repository at this point in the history
…nsform (#816)
  • Loading branch information
danielgindi authored Feb 22, 2021
1 parent 4a11bbd commit a69e85d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/commonjs/src/transform-commonjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ export default function transformCommonjs(
uses.exports ||
uses.require ||
uses.commonjsHelpers ||
hasRemovedRequire
hasRemovedRequire ||
isRestorableCompiledEsm
) &&
(ignoreGlobal || !uses.global)
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Object.defineProperty(exports, "__esModule", { value: true });
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var input = /*#__PURE__*/Object.defineProperty({

}, '__esModule', {value: true});

export default input;
export { input as __moduleExports };

0 comments on commit a69e85d

Please sign in to comment.