Open magne4000 opened 1 year ago
Add the ability to override sanitizeFileName in rollup outputConfig. By default, characters like + are replaced with _, thus generating differences between artifacts names in the following case:
sanitizeFileName
+
_
import { defineConfig } from 'tsup'; export default defineConfig([ { entry: ['./+config.h.ts'], format: ['esm'], dts: { entry: ['./+config.h.ts'], }, }, ]);
It currently generates the following files:
- /dist/+config.h.js - /dist/_config.h.d.ts <--
With sanitizeFileName: false, the file names would be more correct and predictable:
sanitizeFileName: false
- /dist/+config.h.js - /dist/+config.h.d.ts <--
Add the ability to override
sanitizeFileName
in rollup outputConfig. By default, characters like+
are replaced with_
, thus generating differences between artifacts names in the following case:It currently generates the following files:
With
sanitizeFileName: false
, the file names would be more correct and predictable:Upvote & Fund