42 Commits

Author SHA1 Message Date
sethfowler-datadog
a8975f7010
feat: expose input source map for webpack-like bundlers (#562) 2025-11-21 10:26:06 +08:00
Kevin Deng
37a74bd133
test: remove this.parse test 2025-11-04 15:17:15 +08:00
Kevin Deng
40e4a049c3
feat!: remove acorn dependency and require custom parser setup
Users must now call `setParseImpl` to provide custom parsing logic before invoking `this.parse`.
Acorn has been removed as a dependency.

closes #480
2025-11-04 14:45:23 +08:00
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
45ec8dd664
chore: upgrade deps 2025-11-03 17:11:23 +08:00
Kanon
0e4fa2d4d5
test: add test for webpack (#497)
* test: add test for webpack

Signed-off-by: ysknsid25 <kengo071225@gmail.com>

* test: add test for webpack

Signed-off-by: ysknsid25 <kengo071225@gmail.com>

---------

Signed-off-by: ysknsid25 <kengo071225@gmail.com>
2025-04-12 19:02:57 +08:00
Kanon
6c91c84c14
test: add test for farm (#498)
Signed-off-by: ysknsid25 <kengo071225@gmail.com>
2025-04-12 01:53:22 +08:00
Kanon
2f86391547
test: add test for rspack (#496)
* test: add test for rspack

Signed-off-by: ysknsid25 <kengo071225@gmail.com>

* test: add test for rspack

Signed-off-by: ysknsid25 <kengo071225@gmail.com>

* test: add test for rspack

Signed-off-by: ysknsid25 <kengo071225@gmail.com>

---------

Signed-off-by: ysknsid25 <kengo071225@gmail.com>
2025-04-12 01:52:03 +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
Kanon
0415fb5a59
test: add test for rolldown/unloader/utils (#493)
Signed-off-by: ysknsid25 <kengo071225@gmail.com>
2025-04-10 04:20:41 +08:00
Kanon
c545adf46f
test: add test for esbuild/utils.ts (#492)
* test: add test for esbuild/utils.ts

Signed-off-by: ysknsid25 <kengo071225@gmail.com>

* test: add test for esbuild/utils.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Signed-off-by: ysknsid25 <kengo071225@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-09 17:39:04 +08:00
三咲智子 Kevin Deng
0b4731208c
fix: pass all params for load & transform hooks 2025-03-19 20:45:35 +08:00
三咲智子 Kevin Deng
9c3a471c66
refactor: import with node: protocol 2024-12-03 17:24:49 +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 三咲智子
19c95b16cc
refactor!: drop webpack 4 (#440)
* refactor: drop webpack 4

* fix types

* fix lockfile
2024-11-29 00:34:26 +08:00
三咲智子 Kevin Deng
d70264160f
fix: type error 2024-11-29 00:24:42 +08:00
三咲智子 Kevin Deng
df84fd7e62
refactor: esm first 2024-11-28 23:38:55 +08:00
三咲智子 Kevin Deng
d5d944b2db
feat: support Vite 6 2024-11-28 23:07:14 +08:00
三咲智子 Kevin Deng
02912f1191
ci: skip fragile test 2024-11-28 22:38:34 +08:00
Erik Demaine
52f0b79df3
fix: Unvirtualize importer paths in webpack and rspack (#430)
* Unvirtualize `importer` paths in webpack and rspack

* Add tests
2024-10-28 20:39:38 +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
三咲智子 Kevin Deng
8e01daec2a
test: disable vite build log 2024-03-03 23:02:55 +08:00
Anthony Fu
88482b3df8 chore: update ci 2023-12-26 15:24:19 +01:00
Erik Demaine
2f6593959d
feat: esbuild support for addWatchFile and getWatchFiles (#345)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2023-12-26 15:02:30 +01:00
Anthony Fu
e44d329173 chore: update deps 2023-12-26 14:56:58 +01:00
bohan
8bb9bb9821
fix: not include everything for rspack (#354) 2023-12-26 14:49:07 +01:00
Anthony Fu
59b3c3ec7d chore: update deps 2023-10-26 12:37:14 +09:00
Anthony Fu
b684576e12 chore: lint 2023-03-11 12:26:47 +01: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
Anthony Fu
9bc6ebb861 refactor: tests 2022-08-09 00:04:37 +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
5e027f6db4 chore: update test 2022-08-08 18:11:58 +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
Anthony Fu
7f0b813778 chore: update webpack import 2022-08-04 02:50:19 +08:00
Anthony Fu
5e71cd2c6b chore: make webpack call compactible with 4 and 5 2022-08-04 02:44:42 +08:00
Luca Forstner
3b082edb47
feat: add isEntry flag to resolveId hook (#138)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-12 17:46:10 +08:00