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 committed 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
Expand Up @@ -437,7 +437,8 @@ export default function transformCommonjs(
uses.exports ||
uses.require ||
uses.commonjsHelpers ||
hasRemovedRequire
hasRemovedRequire ||
isRestorableCompiledEsm
) &&
(ignoreGlobal || !uses.global)
) {
Expand Down
@@ -0,0 +1 @@
Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.