94 Commits

Author SHA1 Message Date
Kevin Deng
f4f149373a
chore: replace __DEV__ with import.meta.dev 2026-01-23 01:15:39 +08:00
Kevin Deng
daf0a3955b
perf: lazy load webpack-virtual-modules 2025-12-03 05:10:48 +08:00
sethfowler-datadog
a8975f7010
feat: expose input source map for webpack-like bundlers (#562) 2025-11-21 10:26:06 +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
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
Julien Elbaz
25b5205d74
fix: rollback webpack __vfsModules to use a Set (#507) 2025-05-13 23:26:50 +08:00
Julien Elbaz
9f68016ebb
fix(rspack): prevent vfs concurrency issues (#504) 2025-05-06 11:31:53 +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
neverland
8e08ebe37f
fix: add error handling to transform for rspack and webpack (#482)
* fix: add error handling to transform for Rspack and webpack

* fix: improve error handling in transform
2025-03-21 17:02:50 +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
c267c44d96
fix(webpack): lazy import webpack 2024-11-29 00:43:00 +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
Yoann Moinet
4013e15bde
refactor: use webpack instead of webpack-sources (#431)
* chore(deps): use webpack instead of webpack-sources

* chore(dep): change peerDependencies versions of webpack

* Empty commit to re-trigger CI

* Load webpack-sources as peer webpack to maintain compatibility

* Remove webpack's peer dependency

* Update comment
2024-11-10 23:41:45 +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
Michael James
1d1e064e96
feat: expose native build context (#404)
* Allow access to rspack and webpack LoaderContext in the UnpluginBuildContext that is available in the load and transform hooks

* refactor

* fix: no native context for vite and roll{up,down}

---------

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-09-09 23:11:25 +08:00
Anthony Fu
6d4d2b1327
fix: dynamically require webpack-sources 2024-09-04 12:13:35 +02:00
Gengkun
2cfe5c7349
fix: undetermistic module type for virtual module (#411) 2024-09-04 11:41:04 +02:00
Yoann Moinet
5ab1a7bddb
fix: await writeBundle hook in webpack and rspack (#390) 2024-06-30 14:35:43 +02:00
NullVoxPopuli
b0ec0e02ef
fix(webpack,rspack): incorrect assumption about the current working directory in webpack and rspack (#374)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2024-03-29 11:37:40 +01:00
三咲智子 Kevin Deng
41978c03c6
fix(webpack): throw a standard error 2024-02-06 13:28:52 +08:00
三咲智子 Kevin Deng
0c5299e1f4
chore: upgrade eslint preset 2024-02-06 13:16:21 +08:00
三咲智子 Kevin Deng
8f00f571f8
feat: support emit object errors 2024-02-06 13:14:20 +08:00
Devon Govett
a3bb13fdf5
fix: use webpack loader context to implement addWatchFile (#359) 2024-02-01 13:36:27 +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
Aymoc
63e027a53d
fix: adjust webpack rspack hooks sequence (#326)
Co-authored-by: fengmingjian <fmj@hanzhisoft.com>
2023-09-18 01:23:31 +08:00
Anthony Fu
33bab0239d chore: updated deps 2023-08-16 12:29:40 +02:00
三咲智子 Kevin Deng
bb2444b1f3
refactor: add tsup shims 2023-06-04 03:44:51 +08:00
Anthony Fu
33ed44af78 chore: update deps 2023-05-23 12:46:42 +02:00
三咲智子 Kevin Deng
0b6742c058
refactor: improve webpack loader type 2023-03-18 14:56:28 +08:00
三咲智子 Kevin Deng
166ef6f575
revert: "feat(webpack): use loader options, improve compactiblity with webpack 5 & rspack (#279)"
This reverts commit a8817bd992c8c65a603dcc43b33ebe78f9cd703c.
2023-03-14 22:53:09 +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 Deng
a8817bd992
feat(webpack): use loader options, improve compactiblity with webpack 5 & rspack (#279) 2023-03-10 14:17:59 +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
7482dc1fcd
feat: introduce new loadInclude hook (#157) 2022-08-21 22:08:38 +08:00
cyly
de5af69440
fix(webpack): avoid repeat set __vfsModules value (#155) 2022-08-18 23:14:26 +08:00
Anthony Fu
53954df7d0 fix(types): support required options 2022-08-15 11:19:06 +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
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
Ivan Demchuk
b68fbc4b70
fix: fix webpack 4 by not using loader options (#149) 2022-08-04 14:19:21 +08:00
Anthony Fu
2b59f7fad9 chore: upgrade tsup 2022-07-26 12:36:23 +08:00
Ivan Demchuk
24f8fa11f1
fix: webpack and esbuild query string support (#144)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-07-26 12:32:12 +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