We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2612d27 commit 4450866Copy full SHA for 4450866
scripts/postbuild.ts
@@ -6,7 +6,6 @@ function patchCjs(cjsModulePath: string, name: string) {
6
writeFileSync(
7
cjsModulePath,
8
cjsModule.replace(`module.exports = ${name};`, `exports.default = ${name};\nexports.__esModule = true;`),
9
- // cjsModule.replace(`module.exports = ${cjsName};`, `module.exports = ${cjsName};\nexports.default = ${cjsName};`),
10
{ encoding: 'utf-8' },
11
)
12
}
0 commit comments