18 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
ffc1e55446
feat!: drop node 18 support, drop CJS build (#558)
* feat!: drop node 18 support, drop CJS build

Requires Node.js version 20.19.0, 22.12.0, or later.

* fix
2025-11-03 17:52:18 +08:00
webdiscus
de0ea62e74
chore: switch from picocolors to ansis (#474) 2025-02-11 17:59:50 +08:00
三咲智子 Kevin Deng
9c3a471c66
refactor: import with node: protocol 2024-12-03 17:24:49 +08:00
三咲智子 Kevin Deng
73322a9f66
chore: upgrade lint 2024-09-26 16:26:28 +08:00
Gengkun
7e4cecbfec
feat: support resolveId for rspack (#388)
* feat: support resolveId for rspack

* fix

* use resolve hook

* use alpha version

* remove skip rspack

* lint code

* Update src/rspack/utils.ts

Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>

* Update docs/guide/index.md

Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>

---------

Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
2024-07-23 11:30:44 +08:00
ADNY
731a596d3a
feat: support farm plugin (#341)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2024-03-13 09:36:41 +01:00
Anthony Fu
33bab0239d chore: updated deps 2023-08-16 12:29:40 +02: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
三咲智子 (Kevin)
d35e0552d0
feat: support nested plugins (#176)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-10-18 11:45:30 +08:00
Anthony Fu
978789f5fc Revert "feat: use pathe for consistent path normalization"
This reverts commit 65f463d1a80d4e57adcfa0a7b98307430004b093.
2022-08-09 00:01:33 +08:00
Anthony Fu
65f463d1a8 feat: use pathe for consistent path normalization 2022-08-08 22:36:51 +08:00
Anthony Fu
56b5742b4b chore: display version on bundling 2022-08-04 03:14:52 +08:00
Anthony Fu
dfaafcd53b chore: switch to pnpm 2021-12-28 21:12:26 +08:00
hyrious
28557c8e3c
feat: support esbuild (#46) 2021-12-28 20:28:15 +08:00
Anthony Fu
333717b297 feat: virtual module support for webpack 2021-08-26 01:09:51 +08:00
Anthony Fu
0c4fec1128 test: add build tests 2021-08-25 13:13:43 +08:00