38 Commits

Author SHA1 Message Date
hyrious
9cc86d6d5b
fix: enable rollup output.compact when minify is enabled (#1232) 2024-10-17 19:52:09 +11:00
三咲智子 Kevin Deng
e8c6079cdf
refactor: lint
eslint --fix by @sxzz/eslint-config

- add `node:` protocol
- sort imports
- ...
2024-07-17 23:46:22 +08:00
xiaohj
6ca0cb0aee
fix: correct sourcemap with treeshake (#1069) 2024-07-17 23:16:14 +08:00
Sunny Fu
26e1bb776f
chore: prefer property shorthand [skip ci] (#1144) 2024-07-17 06:17:43 +08:00
三咲智子 Kevin Deng
31b5fa4884
refactor: upgrade swc 2024-07-17 04:47:45 +08:00
三咲智子 Kevin Deng
f1f21c50dd
refactor: upgrade TS & enable verbatimModuleSyntax 2024-07-17 04:14:59 +08:00
三咲智子 Kevin Deng
b537d37269
style: format code, upgrade prettier to v3 2024-07-17 03:38:11 +08:00
Haydn
83c7c7f313
fix: support swc target for mjs (#1081) 2024-02-10 14:58:39 +08:00
ocavue
d8a203c661
chore(ci): automatically format code (#1035) 2023-11-19 20:54:39 +08:00
三咲智子 Kevin Deng
b749a274be
fix: add newline after cjsInterop
closes #1022
2023-10-16 20:49:40 +08:00
三咲智子 Kevin Deng
1dbd86b734
feat: support es3 target (#965) 2023-10-16 12:47:47 +00:00
翠 / green
438ec47484
feat!: update to rollup v4 (#1018) 2023-10-16 12:39:54 +00:00
三咲智子 Kevin Deng
d870f4e76c
feat: add option for interop default in cjs (#947) 2023-08-02 23:05:34 +08:00
Mathis Møller
23e25cd779
fix: Remove SWC and Terser minification clash (#881) 2023-06-16 14:40:12 +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
翠 / green
2f41663dc2
fix: prefix terser log with name (#899) 2023-06-16 14:21:21 +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
Puru Vijay
fdd4dfa283
feat: Minify with terser (#789)
closes #742
2023-02-07 19:19:00 +08:00
dusion
fb248e4936
fix: ignore rollup warning if silent is true (#707) 2022-10-06 22:36:16 +08:00
Parbez
900a260e4f
fix: pass globalName to rollup for tree-shaking iife build (#692) 2022-08-26 15:39:40 +08:00
EGOIST
7000c8b6f5 fix: don't transform to cjs twice, resolves #675 2022-08-12 14:01:45 +08:00
EGOIST
c06b5e1426 fix: make --treeshake work with hashbang 2022-08-12 13:48:19 +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
EGOIST
8230221e4e fix: make --minify work with es5 target, fix #653 2022-06-10 23:46:49 +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
EGOIST
0826b35bb2 fix: bring back inline sourcemap support, closes #495 2021-12-15 14:04:50 +08:00
EGOIST
b540a6705c chore: clean up 2021-12-11 19:03:33 +08:00
EGOIST
bff7fdfae6 refactor: deprecate options.entryPoints in favor of options.entry 2021-12-11 17:19:26 +08:00
EGOIST
dfab78e840 chore: tweaks 2021-12-10 16:48:40 +08:00
EGOIST
5edf9a8dff feat: add bundle size reporter 2021-12-10 16:34:26 +08:00
EGOIST
524470c49b
feat: experimental plugin system (#486)
Co-authored-by: EGOIST <0x142857@gmail.com>
Co-authored-by: 木杉 <zhmushan@qq.com>
2021-12-10 15:44:27 +08:00
EGOIST
cbe9281158 refactor: rename plugins folder to esbuild 2021-03-17 01:18:52 +08:00
EGOIST
353d8d3b46 fix(svelte): add missing js code 2021-02-27 15:00:30 +08:00
EGOIST
06906f20dc feat: let esbuild handle css extracted from svelte components 2021-02-27 14:52:30 +08:00
EGOIST
e18e1c8a39 feat: add svelte support 2021-02-27 13:34:12 +08:00
EGOIST
ef8e2c6dff feat: support RegExp in external 2021-02-23 22:04:27 +08:00
EGOIST
14db5628f1 fix: make postcss config optional 2020-11-27 23:42:52 +08:00
EGOIST
743421c65a feat: add postcss support 2020-11-27 20:56:25 +08:00