Commit aa44008
committed
fix: exclude shim file from bundled dependency detection
When shims: true is enabled, tsdown injects ESM shims (__filename,
__dirname) by importing from its own esm-shims.js. Since this file
resides in node_modules/tsdown/, the dependency detection in
generateBundle incorrectly flags tsdown itself as a bundled dependency
and shows a confusing hint suggesting the user configure deps.onlyBundle.
Skip the shimFile when iterating module IDs in the generateBundle
handler so the shim import is not reported as a bundled dependency.
Closes #9071 parent 25510c5 commit aa44008
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
0 commit comments