Skip to content

Commit

Permalink
fix: ignore export assign cannot be used in module TS error, fixes #1018
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Nov 14, 2024
1 parent 2cf6e25 commit 2bc2188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fix-cjs-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const path = require('node:path');
// Append `export = _default;` to match the
// `module.exports = DOMPurify` statement
// that Rollup creates.
fixed += '\nexport = _default;\n';
fixed += '\n// @ts-ignore\nexport = _default;\n';

await fs.writeFile(fileName, fixed);
})().catch((ex) => {
Expand Down

0 comments on commit 2bc2188

Please sign in to comment.