118 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng
abf3a30050
chore: upgrade pnpm to v9 2024-07-17 04:01:44 +08:00
三咲智子 Kevin Deng
2864110c50
test: split unit tests for concurrency 2024-07-17 03:59:54 +08:00
三咲智子 Kevin Deng
b537d37269
style: format code, upgrade prettier to v3 2024-07-17 03:38:11 +08:00
ocavue
8c26e63c92
fix(experimental-dts): make --experimental-dts to be compatible with --clean (#1041) 2023-11-20 16:27:43 +08:00
ocavue
731f43fe14
fix(experimental-dts): only include exported declarations (#1039) 2023-11-20 15:45:11 +08:00
ckohen
f83baf86c8
fix(dts): ensure chunks conform to bundle format (#1034) 2023-11-19 20:53:05 +08:00
ocavue
d4e22c5fb9
fix: await postcss for async plugins (#1036) 2023-11-18 16:36:54 +08:00
dependabot[bot]
080f5b873d
chore(deps-dev): bump @babel/traverse from 7.22.5 to 7.23.2 in /test (#1027) 2023-11-17 20:46:18 +08:00
ocavue
61fc06c613
feat: add experimental dts rollup using @microsoft/api-extractor (#983) 2023-11-17 20:29:07 +08:00
翠 / green
438ec47484
feat!: update to rollup v4 (#1018) 2023-10-16 12:39:54 +00:00
Andrew Branch
fb4c2b6e75
feat: Ensure matching declaration file exists for each output bundle format (#934)
* Ensure dts files match all output formats

* Update docs
2023-06-25 16:58:14 +08:00
Tmk
3606e45dff
feat: support svelte-preprocess (#906)
* feat: support svelte-preprocess

* chore: update lockfile

---------

Co-authored-by: EGOIST <hi@egoist.dev>
2023-06-16 17:40:22 +08:00
翠 / green
2c0435a30f
fix: preserve top-level when running terser for IIFE (#900)
Co-authored-by: EGOIST <hi@egoist.dev>
2023-06-16 14:39:01 +08:00
await-ovo
68297f78f7
chore: update postcss-load-config (#880)
* chore: update postcss-load-config

* chore: install pnpm@7 in CI

* use pnpm v8

---------

Co-authored-by: EGOIST <hi@egoist.dev>
2023-06-16 14:20:15 +08:00
EGOIST
4027d3a3bf chore: recreate lockfile in test folder 2023-06-16 13:58:34 +08:00
teobler
e2e70e8603
feat: Update esbuild version to latest for keeping unknown directives during bundle (#925)
BREAKING CHANGE:

update esbuild to 0.18
2023-06-16 13:51:26 +08:00
await-ovo
01169b3975
feat: add function type for options.injectStyle (#855) 2023-03-19 17:23:14 +08:00
EGOIST
30ff79db91 feat: upgrade esbuild 0.16 -> 0.17 2023-02-07 22:17:03 +08:00
await-ovo
4154e05032
feat: update rollup-plugin-dts to support custom tsconfig and preserve export {} for file that have no exports (#807)
Co-authored-by: EGOIST <hi@egoist.dev>
close https://github.com/egoist/tsup/issues/762
close https://github.com/egoist/tsup/issues/791
2023-02-07 20:26:08 +08:00
Cesar S
14ad4bd529
fix: default exports not working on CJS + treeshake: true (#815)
Fixes https://github.com/egoist/tsup/issues/814
2023-02-07 20:23:07 +08:00
Amit Dahan
904e07a21b
feat: Bump esbuild 0.15 -> 0.16 (#805)
Co-authored-by: EGOIST <hi@egoist.sh>
2023-02-07 20:16:03 +08:00
EGOIST
9ce5c1310e fix: use rollup v3, closes #749 2022-11-03 22:07:22 +08:00
await-ovo
906f124ada
feat: respect target config in tsconfig.json (#757)
Co-authored-by: EGOIST <0x142857@gmail.com>
2022-11-03 17:30:22 +08:00
Amit Dahan
2f9d370ab2
fix: Configure Rollup's external to support subpaths too (#722) 2022-10-17 19:42:51 +08:00
Eric Burel
bb2309a384
fix: respect noExternal option with Tsup node (#720)
Co-authored-by: EGOIST <hi@egoist.dev>
2022-10-17 19:39:04 +08:00
ArcherGu
8d7ce9e03f
feat: allow to exclude dependencies from specific package.json (#717) 2022-10-06 22:46:05 +08:00
EGOIST
c06b5e1426 fix: make --treeshake work with hashbang 2022-08-12 13:48:19 +08:00
EGOIST
c3dc8d8cc5 fix(deps): upgrade esbuild to 0.15, resolves #690 2022-08-12 13:17:33 +08:00
nikaple
34df1da747
feat: improve minification for --target es5 (#664)
* feat: improve minification for `--target es5`

* remove .only

Co-authored-by: EGOIST <0x142857@gmail.com>
2022-07-25 22:57:57 +08:00
Joel M
20879071a9
feat: allow onSuccess callback in tsup config file (#657)
Co-authored-by: EGOIST <0x142857@gmail.com>
2022-07-25 22:34:44 +08:00
EGOIST
8dbb97dd7b test: fix decorator test 2022-07-25 20:42:51 +08:00
EGOIST
fcdcd8bcce test: ability to remove unused code 2022-07-25 20:26:31 +08:00
EGOIST
8230221e4e fix: make --minify work with es5 target, fix #653 2022-06-10 23:46:49 +08:00
Julien Goux
58d0145e84
feat(cli): add --tsconfig flag to accept custom tsconfig path (#652)
* feat: expose tsconfig option

* write a test

* oops, remove the only function

* no need for a snapshot

Co-authored-by: EGOIST <hi@egoist.sh>
2022-06-10 23:08:43 +08:00
Julien Goux
be48b8b7a5
feat(minor): use shell option for complex commands in onSuccess (#649) 2022-06-10 22:45:13 +08:00
EGOIST
33a7c5f94e feat: allow to use an object as entry with --entry flag 2022-06-06 01:30:54 +08:00
EGOIST
90f2d1ae3a feat: support custom config file with --config flag 2022-06-06 01:17:03 +08:00
EGOIST
b9cd8d5f09 feat: new option outExtension 2022-05-30 21:29:37 +08:00
EGOIST
1602446900 feat: shims option is now false by default
BREAKING CHANGE:

`shims` option is `false` by default, changing it `true` allows tsup to shim `import.meta.url` in `cjs` build and `__dirname` `__filename` in `esm` build
2022-05-25 16:38:22 +08:00
EGOIST
b4fd91aa4c feat: allow to use rollup for tree shaking
a new flag `--treeshake` as well as a config option `treeshake`
2022-05-25 16:24:05 +08:00
schelmo
67eea53583
fix: resolve to package.json only if tsup key exists (#622)
Co-authored-by: EGOIST <hi@egoist.sh>
2022-05-05 21:51:36 +08:00
EGOIST
637ec281ab fix: make sure sources are relative path in sourcemap, closes #603 2022-04-03 17:20:18 +00:00
EGOIST
e5fe1c188b fix: don't treat .node.js as native node module, closes #589 2022-04-02 14:16:59 +00:00
EGOIST
93bf6e808a chore(deps): update vitest 2022-04-01 12:42:40 +08:00
Zhang Zhi
f08cde4439
chore: supports cross-module inlining of TypeScript enum constants (#587) 2022-03-17 12:30:31 +08:00
EGOIST
20fb72b308 fix: ignore non js/ts files in --dts build, closes #554 2022-01-30 17:21:33 +08:00
EGOIST
e6009846d0 test: replace ava with vitest 2022-01-30 17:05:44 +08:00
EGOIST
b8c51f4553 fix: node 12.20.0 compatibility 2022-01-29 18:06:20 +08:00
Giuem
2a42a02fc7
fix: support multiple targets (#525) 2021-12-31 20:34:24 +08:00
EGOIST
0826b35bb2 fix: bring back inline sourcemap support, closes #495 2021-12-15 14:04:50 +08:00