128 Commits

Author SHA1 Message Date
EGOIST
9d8b1e164b fix: allow dts entry to be an array or object 2021-03-16 13:01:20 +08:00
EGOIST
5e0ef26349 fix: support tsup.config.cjs 2021-03-15 18:18:45 +08:00
EGOIST
d64d7b3817 feat: upgrade esbuild to 0.9 2021-03-14 20:15:50 +08:00
EGOIST
9fbbf0ca5c fix: add typescript as optional peerDependency 2021-03-03 15:23:59 +08:00
reslear
919aa2161e
refactor: logging is --clean (#262) 2021-03-02 19:32:27 +08:00
EGOIST
01ccc97351 feat: add --clean flag 2021-03-01 22:07:59 +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
fe6ecaafa1 fix: add flag to disable code splitting, closes #255 2021-02-24 15:42:01 +08:00
EGOIST
719f92625b refactor: normalizeOptions 2021-02-23 22:17:38 +08:00
EGOIST
ef8e2c6dff feat: support RegExp in external 2021-02-23 22:04:27 +08:00
EGOIST
1bde51ff01 feat: improve dts support
* Now --dts-resolve will also externalize pkg.dependencies by default.
* Added support for config file. tsup.config.{ts,js,json}
2021-02-23 15:28:39 +08:00
EGOIST
455767f282 feat(experimental): allow custom dts entry 2021-02-23 00:44:27 +08:00
EGOIST
ce296ae6b3 fix(dts): no longer preserveEntrySignatures
`preserveEntrySignatures: true` is not needed to rollup dts files, and adding it would break rollup-plugin-dts (results in separate d.ts files)
2021-02-23 00:23:50 +08:00
EGOIST
7a1e001e08 fix: stop replacing process.env.NODE_ENV
BREAKING CHANGE:

tsup will no longer replace `process.env.NODE_ENV` with `production` or `development`, cuz tsup is designed for bundling Node.js libraries, therefore it doesn't make sense to replace it at build time, however you can still enable this by using `--replaceNodeEnv` flag.
2021-02-17 14:49:46 +08:00
EGOIST
d9be211e6e fix: better error handling for loading tsconfig.json, closes #227 2021-01-30 21:02:32 +08:00
EGOIST
ba8821eb54 feat: re-introduce --dts bundle support 2021-01-23 16:45:10 +08:00
EGOIST
0b80615d05 feat: add --keep-names flags 2020-12-14 19:52:11 +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
Wzh
a95b811469
feat: add --sourcemap flag (#146) 2020-11-12 20:48:25 +08:00
Pablo Sáez
1fb78eb806
fix: change fast-glob to globby (#159) 2020-10-25 22:33:57 +08:00
Anthony Fu
c1983b878a
feat: externalize peerDependencies (#132) 2020-09-16 21:53:46 +08:00
EGOIST
e24278d111 fix: properly set compile-time env variables 2020-08-16 14:12:15 +08:00
EGOIST
e551226235 fix: throw error when input doesn't match any files
closes #90
2020-08-16 13:49:35 +08:00
EGOIST
90fbc54fec feat: add --env flag 2020-08-16 13:45:30 +08:00
EGOIST
7dc32ba470 feat: experimental babel support 2020-08-16 12:02:23 +08:00
EGOIST
fcb0dbc57e fix: ensure target is lowercase and output esbuild error
closes #106
2020-08-14 20:30:57 +08:00
Kevin Titor
9188c7a6c3
fix: More minify options (#84)
* Update index.ts

* Update cli.ts
2020-07-26 01:54:57 +08:00
Kevin Titor
4ab3f5842e
fix: enable minify 2020-07-26 01:39:08 +08:00
EGOIST
b9d4596a0c feat: support glob patterns 2020-07-25 22:46:19 +08:00
EGOIST
799b491604 feat: add --legacy-output flag 2020-07-25 15:15:11 +08:00
EGOIST
287a67562b fix: set exit code when error occurs in worker, closes #83 2020-07-25 14:54:32 +08:00
EGOIST
3ebef58ca7 feat: use different extension for esm format, closes #68 2020-07-25 14:48:27 +08:00
EGOIST
aabb502721 refactor: close message port elegantly 2020-07-23 23:28:58 +08:00
EGOIST
73ef30e53c fix: write files in watch mode 2020-07-21 20:18:26 +08:00
EGOIST
0ebb08dd8e feat: add es5 target 2020-07-21 15:17:50 +08:00
Kevin Titor
a4714a7eb0
feat: use esbuild for bundling (#72)
BREAKING CHANGE:

- Removed `run` command
- Using `esbuild` instead of `rollup` for bundling, `dts` file is still generated by rollup.
2020-07-20 16:45:18 +08:00
EGOIST
bba34171b2 feat: use esbuild again 2020-07-19 00:12:45 +08:00
EGOIST
a1fd47886e feat: improve logs under watch mode 2020-07-18 22:57:31 +08:00
Kevin Titor
6bcdb5f23e fix: disable tsc declaration when --dts is set 2020-07-11 01:12:18 +08:00
EGOIST
3d38ce9c08 chore(deps): use kleur instead of colorette 2020-07-11 00:55:58 +08:00
Kevin Titor
5efa1b45de
fix: don't generate declaration unless --dts specified 2020-07-10 23:41:44 +08:00
EGOIST
b51c28582c fix: namedExports option is no longer needed in commonjs plugin 2020-07-10 22:50:58 +08:00
EGOIST
48d0369534 fix: use rollup-plugin-typescript2 2020-07-10 22:43:57 +08:00
EGOIST
fe5c6d22ce feat: use @rollup/plugin-typescript, closes #59
BREAKING CHANGE:

removed flags --minify, --target because we replaced rollup-plugin-esbuild with @rollup/plugin-typescript
2020-07-10 22:27:24 +08:00
EGOIST
52ab32b1bd feat(cli): better error handling 2020-06-29 21:17:11 +08:00
EGOIST
87de6e17e5 fix: somehow --dts-bundle works now 2020-05-19 00:13:48 +08:00
EGOIST
282c912a0b fix: implicitly set --dts 2020-05-19 00:06:41 +08:00