clipboard-text
clipboard-text copied to clipboard
chore(deps): update dependency tsup to v6
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| tsup | ^4.14.0 -> ^6.2.2 |
Release Notes
egoist/tsup
v6.2.2
Bug Fixes
- deps: upgrade esbuild to 0.15, resolves #690 (c3dc8d8)
- don't transform to cjs twice, resolves #675 (7000c8b)
- make --treeshake work with hashbang (c06b5e1)
v6.2.1
Bug Fixes
v6.2.0
Bug Fixes
- actually trigger rebuild when watched files change (135ff39)
Features
- allow onSuccess callback in tsup config file (#657) (2087907)
- improve minification for
--target es5(#664) (34df1da) - optimize tsconfig.json loading (#660) (407cec6)
v6.1.3
Bug Fixes
v6.1.2
Bug Fixes
v6.1.1
Features
-
cli: add
--tsconfigflag to accept custom tsconfig path (#652) (58d0145) - minor: use shell option for complex commands in onSuccess (#649) (be48b8b)
v6.1.0
Bug Fixes
- allow
formatto be a string in config file (0a96985) - ignore esbuild warning if silent is true (#643) (36e2199)
Features
- allow to use an object as entry with
--entryflag (33a7c5f) - new option
outExtension(b9cd8d5) - support custom config file with
--configflag (90f2d1a)
v6.0.1
Bug Fixes
- add missing
tsup-nodecommand (a175339)
v6.0.0
Upgrade guide
-
shimsoption isfalseby default: If you're dual-publishing (i.e.--format esm,cjs) and using platform specific API likeimport.meta.url,__dirnameand__filename, you need to manually enable--shimsflag now, becauseimport.meta.urlwon't work in acjsmodule, and__dirname,__filenamewon't work in anesmmodule. -
targetoption is nownode14by default: previously it wasnode12, the minimal node version that tsup can run in is also changed tonode14
New Features
- New
treeshakeoption: You can use Rollup for tree-shaking now, read more https://tsup.egoist.sh/#tree-shaking
v5.12.9
Bug Fixes
Features
v5.12.8
Bug Fixes
v5.12.7
Bug Fixes
- define a build-time constant called
TSUP_FORMAT(f4a56ed) - resolve to package.json only if tsup key exists (#622) (67eea53)
v5.12.6
Bug Fixes
v5.12.5
Bug Fixes
v5.12.4
Bug Fixes
- make sure
sourcesare relative path in sourcemap, closes #603 (637ec28) - reject promise with an error (401e204)
v5.12.3
Bug Fixes
v5.12.2
Bug Fixes
v5.12.1
Bug Fixes
v5.12.0
Bug Fixes
- exclude
bannerandfooterin the options for rollup (4cc7ea7) - unlink the outDir twice will report an error (#569) (5bd6819)
Features
- allow
bannerandfooterto a function (2521e9f)
v5.11.13
Bug Fixes
v5.11.12
Bug Fixes
- node 12.20.0 compatibility (b8c51f4)
v5.11.11
Bug Fixes
- plugins can't be pased to the worker (b26ea64)
v5.11.10
Bug Fixes
- remove --inlineDynamicImports (it's never used) (ce15069)
- support multiple targets (#525) (2a42a02)
v5.11.9
Bug Fixes
- watch mode: buildDependencies lost after build failure (#504) (40951ec)
- dts: apply required defaults to rollup-plugin-dts, closes #509 (6c44f3d)
v5.11.8
Bug Fixes
v5.11.7
Bug Fixes
v5.11.6
Bug Fixes
v5.11.5
Bug Fixes
v5.11.4
Bug Fixes
v5.11.3
Bug Fixes
- add .map suffix to sourcemap comment (c0ffb68)
v5.11.2
Bug Fixes
v5.11.1
Bug Fixes
v5.11.0
Bug Fixes
- now cjs shims should only be injected when it's actually used (a6e06e8)
- show a warning if
@swc/corewas not installed (213ac91) - potentially fixed sourcemap issue if you are using cjs format with
--splitting
Features
- add bundle size reporter (5edf9a8)
- allow to disable cjs/esm shims (edc92e4)
- experimental plugin system (#486) (524470c)
- Simple CSS injection support (#483) (798f446)
- upgrade esbuild to 0.14 (7f2660c)
v5.10.3
Bug Fixes
-
types: build types for
src/index.tsonly (ae30b68)
v5.10.2
Bug Fixes
- missing types in previous release (8d8abfe)
v5.10.1
Bug Fixes
- only use esm shim for node platform (#475) (29dcb8e)
- Preserve usused imports when esbuild transforms ts in svelte (#476) (1056575)
- shim
__dirname,__filenamein esm bundle (d0870dd) -
svelte: handle
lang="ts"(ab5829d)
v5.10.0
Features
- add
dts.banneranddts.footeroptions (557fcae) - add
noExternaloption (f7ed948) - load tsup config in parent directory until it reaches root, closes #378 (325b254)
- support native
.nodefiles, closes #303 (8cadbb1) - use swc to support decorator metadata (531a05e)
v5.9.2
Bug Fixes
v5.9.1
Bug Fixes
- use
bundle-requireto bundletsup.config.ts(3aba009) - windows: normalize path in watcher (#466) (9d4d3d7)
v5.9.0
Features
- add
--dts-onlyflag to emit declarations only (2d4f6b0) - watch: only trigger rebuild when the changed file is actually imported (88875e6)
v5.8.1
Bug Fixes
- bundle svelte without styles (#464) (3fb9b8e)
- windows: support backslash in cli arguments (#463) (8c8f19f)
v5.8.0
Features
- custom tsconfig and allow multpile tsup config (555c535)
v5.7.4
Bug Fixes
v5.7.3
Features
v5.7.2
Bug Fixes
- resolve
modulefield beforemainfield (7bc02d7)
v5.7.1
Bug Fixes
- dts: use real path (d079b9b)
v5.7.0
Features
v5.6.3
Bug Fixes
- do not use
preserveSymlinks: truewhen bundling dts file (112fbf6)
v5.6.2
Bug Fixes
- Revert "fix: do not use
preserveSymlinks: truewhen bundling dts file" (e487ffe)
v5.6.1
Bug Fixes
- do not use
preserveSymlinks: truewhen bundling dts file (5697b20)
v5.6.0
Features
- add
footerandbanneroptions, closes #451 (1fa05c3) - allow to extend esbuild options via tsup options (1f85660)
v5.5.0
Features
v5.4.4
Bug Fixes
- regression: fix declaration file path with a single entrypoint (15c82f5)
v5.4.3
Bug Fixes
v5.4.2
Bug Fixes
v5.4.1
Bug Fixes
v5.4.0
Features
v5.3.0
Features
v5.2.1
Bug Fixes
- modules should not be externalized in iife format (f29ec8f)
v5.2.0
Features
v5.1.0
Features
v5.0.0
Bug Fixes
BREAKING CHANGES
- Code splitting now only works for esm format (default output format is
cjs), code splitting with cjs format is not supported by esbuild, and our workaround is kinda buggy, so we reverted that decision.
Configuration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.