How should I add globals like options to the iife format?
Open
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 275
- PR merge metrics
- No merged PRs in 30d
Description
Hi, this is my use case
```ts
import { defineConfig } from 'tsup'
export default defineConfig({
format: ['cjs', 'esm', 'iife'],
external: ['vue'],
globalName: 'OverlayReact',
clean: true,
dts: true
})
```
It will package vue with a larger volume, while vue may be redefined by users as CDNs, which is not cost-effective
How should I add the following options?
```
globals: { 'vue': 'Vue' }
```
Contributor guide
Assessment
This issue has not been assessed yet.