Skip to content

Commit

Permalink
fix: cjs namedExports
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jan 31, 2023
1 parent 05dfdf1 commit f76c8ff
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,4 @@ export const tsup = defineConfig((option) => ({
format: ['cjs', 'esm'],
minify: false,
sourcemap: !!option.watch,
esbuildOptions: (options) => {
if (options.format === 'cjs') {
options.footer = {
js: 'module.exports = module.exports.default;',
}
}
},
}))

0 comments on commit f76c8ff

Please sign in to comment.