Skip to content

Commit

Permalink
Use cjs export
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 8, 2022
1 parent 28ee692 commit 537919a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/modify-typescript-module.mjs
Expand Up @@ -249,7 +249,7 @@ function modifyTypescriptModule(text) {
end: "});",
});

source.append("export default typescript_exports;");
source.append("module.exports = __toCommonJS(typescript_exports);");

return source.toString();
}
Expand Down

0 comments on commit 537919a

Please sign in to comment.