260 Commits

Author SHA1 Message Date
EGOIST
e487ffef8c fix: Revert "fix: do not use preserveSymlinks: true when bundling dts file"
5697b205a5543395e63065aad3ea27b9b6cb5b19
2021-11-12 14:40:56 +08:00
EGOIST
5697b205a5 fix: do not use preserveSymlinks: true when bundling dts file 2021-11-12 14:35:26 +08:00
EGOIST
0f7837d38b build: enable code splitting 2021-10-20 00:48:28 +08:00
EGOIST
ad95e5c9cf fix: make --define support nested properties, closes #440 2021-10-20 00:46:14 +08:00
Pablo Sáez
792234624d
feat: update esbuild to ^0.13.4 (#431) 2021-10-07 12:15:04 +08:00
Homyee King
f7cae28188
build: add dev script (#411) 2021-09-23 23:03:35 +08:00
EGOIST
1667fd2b97 feat: make experimental cjs code splitting available behine flag --splitting
closes #408
2021-09-16 21:07:24 +08:00
FM
49f48ead4c
fix: only enable code splitting in esm format (#403)
BREAKING CHANGE:

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.
2021-09-15 21:59:43 +08:00
dependabot[bot]
f640865dbf
chore(deps): bump rollup from 2.50.6 to 2.56.1 (#383)
Bumps [rollup](https://github.com/rollup/rollup) from 2.50.6 to 2.56.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.50.6...v2.56.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-12 17:02:20 +08:00
EGOIST
5cac0ea8db fix: upgrade to rollup-plugin-dts 3.0.2
closes #368
2021-08-04 23:51:41 +08:00
EGOIST
3ca80afe32 feat: update esbuild to 0.12 2021-06-26 16:09:00 +08:00
dependabot[bot]
3f69964df2
chore(deps): bump esbuild from 0.11.23 to 0.12.8 (#329)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.11.23 to 0.12.8.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.11.23...v0.12.8)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-15 13:39:00 +08:00
Pablo Sáez
c7773e9a3c
feat: export main cli & add tsup-node command (#290)
* export main cli & add tsup-node

* update docs

* update tests

* refactor external-plugin to support skipNodeModulesBundle directly

* update docs

Co-authored-by: EGOIST <0x142857@gmail.com>
2021-04-27 17:13:50 +08:00
Pablo Sáez
2a13f4bedb
fix(win): use tree-kill (#286) 2021-04-19 14:58:43 +08:00
Pablo Sáez
c992b13a43
feat: improve watch mode & add silent mode (#285) 2021-04-18 18:28:14 +08:00
EGOIST
b1f7994941 fix: use the native esbuild formatMessages method to output warnings 2021-03-27 13:41:03 +08:00
EGOIST
257033f2e1 fix: output essential esbuild warnings 2021-03-21 18:13:17 +08:00
EGOIST
a9560cb513 fix: don't pass esbuild plugins to rollup worker 2021-03-18 16:30:44 +08:00
EGOIST
4c12e43a4c fix(dts): resolve relative path in node_modules 2021-03-17 14:59:18 +08:00
dependabot-preview[bot]
43b47aa995
chore(deps): bump joycon from 2.2.5 to 3.0.0 (#270)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-17 01:22:41 +08:00
dependabot-preview[bot]
a18a18c430
fix(deps-dev): bump rollup-plugin-dts from 2.0.1 to 3.0.1 (#274)
Bumps [rollup-plugin-dts](https://github.com/Swatinem/rollup-plugin-dts) from 2.0.1 to 3.0.1.
- [Release notes](https://github.com/Swatinem/rollup-plugin-dts/releases)
- [Changelog](https://github.com/Swatinem/rollup-plugin-dts/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rollup-plugin-dts/compare/v2.0.1...v3.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-17 01:22:22 +08:00
EGOIST
72015e1e76 fix: improve type declaration resolving mechanism 2021-03-17 01:18:15 +08:00
Pablo Sáez
0cc5cc15e3
feat: add --onSuccess <command> flag (#275)
Co-authored-by: EGOIST <0x142857@gmail.com>
2021-03-16 18:09:22 +08:00
dependabot-preview[bot]
84d4088870
chore(deps): bump rollup from 2.40.0 to 2.41.2 (#272) 2021-03-15 21:24:40 +00:00
dependabot-preview[bot]
474b64fff7
chore(deps-dev): bump postcss from 8.2.7 to 8.2.8 (#273) 2021-03-15 21:21:51 +00:00
dependabot-preview[bot]
36a37c7cb6
chore(deps-dev): bump @babel/core from 7.13.8 to 7.13.10 (#269) 2021-03-15 21:21:23 +00:00
dependabot-preview[bot]
24ca37c09b
chore(deps-dev): bump @types/node from 14.14.32 to 14.14.35 (#271) 2021-03-15 21:20:16 +00:00
EGOIST
d64d7b3817 feat: upgrade esbuild to 0.9 2021-03-14 20:15:50 +08:00
dependabot-preview[bot]
4c2a0a441e
chore(deps-dev): bump ts-jest from 26.5.2 to 26.5.3 (#265) 2021-03-08 21:28:54 +00:00
dependabot-preview[bot]
e6837d4cdd
chore(deps-dev): bump typescript from 4.2.2 to 4.2.3 (#267) 2021-03-08 21:24:45 +00:00
dependabot-preview[bot]
f1e620f70f
chore(deps-dev): bump @types/node from 14.14.31 to 14.14.32 (#268) 2021-03-08 21:24:27 +00:00
dependabot-preview[bot]
4fe47f04b0
chore(deps-dev): bump postcss from 8.2.6 to 8.2.7 (#264) 2021-03-08 21:22:38 +00:00
dependabot-preview[bot]
8d87915bb7
chore(deps-dev): bump svelte from 3.34.0 to 3.35.0 (#263) 2021-03-08 21:22:24 +00:00
EGOIST
9fbbf0ca5c fix: add typescript as optional peerDependency 2021-03-03 15:23:59 +08:00
dependabot-preview[bot]
e9d42a2966
chore(deps-dev): bump typescript from 4.1.5 to 4.2.2 (#257) 2021-03-02 01:38:30 +00:00
dependabot-preview[bot]
3e54f13116
chore(deps): bump rollup from 2.39.0 to 2.40.0 (#261) 2021-03-01 22:05:42 +00:00
dependabot-preview[bot]
ff429e7d6e
chore(deps-dev): bump @types/fs-extra from 9.0.7 to 9.0.8 (#260) 2021-03-01 22:05:34 +00:00
dependabot-preview[bot]
8c81692706
chore(deps-dev): bump @babel/core from 7.12.17 to 7.13.8 (#259) 2021-03-01 22:04:37 +00:00
dependabot-preview[bot]
59429c4010
chore(deps-dev): bump ts-jest from 26.5.1 to 26.5.2 (#256) 2021-03-01 22:02:39 +00:00
EGOIST
25367fdee5 chore(deps): update tsup 2021-03-01 22:12:02 +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
29e5e240c8 chore: tweak build script 2021-02-23 16:18:20 +08:00
EGOIST
df78f2cebb chore(deps): update tsup 2021-02-23 15:37:44 +08:00
EGOIST
813651fda7 tweaks 2021-02-23 15:32:32 +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
dependabot-preview[bot]
cbd61e9f74
chore(deps): bump esbuild from 0.8.46 to 0.8.50 (#251)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.8.46 to 0.8.50.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.8.46...v0.8.50)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-23 11:20:40 +08:00
dependabot-preview[bot]
1fe9ff22ac
chore(deps-dev): bump @types/node from 14.14.28 to 14.14.31 (#252) 2021-02-22 21:24:08 +00:00
dependabot-preview[bot]
3a56c3a92f
chore(deps-dev): bump @babel/core from 7.12.16 to 7.12.17 (#254) 2021-02-22 21:23:52 +00:00
dependabot-preview[bot]
4deba4452a
chore(deps): bump cac from 6.7.1 to 6.7.2 (#253) 2021-02-22 21:22:53 +00:00