egoist / egoist/tsup

RollupError: Multiple conflicting contents for sourcemap source

Open
#1,312 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

tsup: `8.4.0`
os: windows

```
export default defineConfig({
entry: [
'src/index.ts'
],
format: ['esm','cjs','iife'],
dts: true,
splitting: false,
sourcemap: true,
clean: true,
treeshake:true,
minify: true,
noExternal:['flex-tools'],
globalName: 'VoerkaI18n',
banner: {
js: `/***
* ---=== VoerkaI18n Runtime ===---
* https://zhangfisher.github.io/voerka-i18n/*
*/`}
})
```

# Build error

`RollupError: Multiple conflicting contents for sourcemap source `

Going back to 8.3.6 will not cause this issue

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the provided tsup configuration on Windows, comparing tsup 8.4.0 with 8.3.6. Focus on the sourcemap generation during the listed src/index.ts build and determine which conflicting source contents trigger the RollupError. Done means the configuration builds successfully on the affected version without regressing sourcemaps.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.