12 Commits

Author SHA1 Message Date
Alistair Smith
f674d582bc
feat: support bun plugin (#539)
* loose start for bun plugin

* implement bun

* support emitFile()

* fix Bun cases in integration test

* add bun to other test files

* remove bun-types-no-globals from github

* restore bun-types-no-globals from npm @^1.2

* bun does not yet support .onEnd, so for now we shouldn't fake it with brittle workarounds

* add Bun in the documentation

* some missing bun references in docs

* support multiple plugins

* use Bun namespace instead of importing module that won't necessarily exist

* Bun is a cute pink color!

* fix the transform hook

* fix for virtual modules

* tidy up

* setup bun in ci

* revert unplugin require path

* ignore bun in test-out folders

* update tests

* support onEnd

* remove

* implement guessLoader(), bun also now supports onEnd()

* don't eat errors/warnings

* we dont need to outdir for bun in this test

* bun writebundle test

* Update to bun@1.2.22 (supports onEnd and onResolve)

* use onStart()

* define onStart() in mocks

* onStart

* ci: run vitest in Bun so we can run bun's tests

* Bun error message if building outside of Bun

* skip bun specific tests when not running in bun

* refactor

* allow only

* ci: fix typecheck

---------

Co-authored-by: Kevin Deng <sxzz@sxzz.moe>
2025-11-03 18:30:00 +08:00
Kevin Deng 三咲智子
b9fde6010a
feat: support resolveId/load/transform.filter, deprecate loadInclude & transformInclude (#494)
* feat: filters

* docs: update

* impl

* test: filter

* fix

* refactor

* refactor

* test: refactor
2025-04-10 06:28:45 +08:00
三咲智子 Kevin Deng
58cb8aa891
refactor: enable isolatedDeclarations 2024-12-03 16:47:59 +08:00
三咲智子 Kevin Deng
378aac10b2
refactor: re-organize utils 2024-11-30 02:43:01 +08:00
三咲智子 Kevin Deng
d70264160f
fix: type error 2024-11-29 00:24:42 +08:00
三咲智子 Kevin Deng
73322a9f66
chore: upgrade lint 2024-09-26 16:26:28 +08:00
三咲智子 Kevin Deng
8e01daec2a
test: disable vite build log 2024-03-03 23:02:55 +08:00
三咲智子 Kevin Deng
525f69b277
feat: experimental support for rspack (#285)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2023-03-11 12:24:52 +01:00
三咲智子 (Kevin)
1b93bec3e5
chore: switch to @antfu/eslint-config (#184) 2022-10-31 21:57:36 +08:00
Luca Forstner
160ec72e93
feat: add writeBundle hook (#179)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-10-22 19:11:24 +08:00
三咲智子 (Kevin)
d35e0552d0
feat: support nested plugins (#176)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-10-18 11:45:30 +08:00
Luca Forstner
335f403bfb
fix: ensure consistent ids across hooks and bundlers (#145)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-08-06 23:48:31 +08:00