Commit Graph

60 Commits

Author SHA1 Message Date
Bjorn Lu
49783da298
revert: use chokidar v3 (#18659) 2024-11-14 09:13:41 +01:00
Bjorn Lu
f08b1463db
feat(asset): inline svg in dev if within limit (#18581) 2024-11-06 10:28:44 +01:00
Bjorn Lu
192d555f88
feat!: update to chokidar v4 (#18453)
Co-authored-by: 翠 / green <green@sapphi.red>
2024-10-29 22:28:35 +08:00
patak
242f550eb4
feat: Environment API (#16471)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
Co-authored-by: Dario Piotrowicz <dario.piotrowicz@gmail.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
Co-authored-by: Anthony Fu <github@antfu.me>
Co-authored-by: Dominik G <dominik.goepel@gmx.de>
Co-authored-by: Igor Minar <i@igor.dev>
Co-authored-by: Viktor Lázár <lazarv1982@gmail.com>
Co-authored-by: Joaquín Sánchez <userquin@gmail.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-09-04 11:27:09 +02:00
Arnaud Barré
2b61cc39a9
fix(hmr): trigger page reload when calling invalidate on root module (#16636) 2024-05-14 22:01:36 +08:00
翠 / green
65eb48f1c6
test: fix flaky test fail (#16667) 2024-05-13 09:19:18 -07:00
翠 / green
c2a4ce5a77
test: don't skip unicode related tests anymore (#16339) 2024-05-07 16:43:33 +08:00
翠 / green
21cc10bfda
fix(hmr): multiple updates happened when invalidate is called while multiple tabs open (#16307) 2024-03-29 13:41:49 +01:00
翠 / green
ffedc06cab
fix(hmr): trigger hmr for missing file import errored module after file creation (#16303) 2024-03-29 07:04:00 +01:00
Bjorn Lu
57628dc780
fix(hmr): call dispose before prune (#15782) 2024-03-12 21:36:54 +08:00
이채준 - CJ Lee
6c4bf266a0
fix(node): remove timestamp query of staticImportedUrls (#15663) 2024-01-23 20:51:00 +01:00
Vladimir
bf1e9c2fd7
feat: support multiple HMR clients on the server (#15340) 2024-01-16 20:49:24 +01:00
Bjorn Lu
dfcb83d41a
fix(css): track dependencies from addWatchFile for HMR (#15608) 2024-01-16 20:46:32 +01:00
Bjorn Lu
6ace32b41d
feat(hmr): reload for circular imports only if error (#15118) 2024-01-08 18:18:55 +01:00
翠 / green
0348137a23
refactor: use dedicated regex methods (#15228) 2023-12-03 13:37:17 +01:00
翠 / green
fd31412131
test: skip unicode test on windows instead of lowering the Node version (#15096) 2023-11-22 11:15:57 +01:00
Arnaud Barré
60a020e592
feat(hmr): add full reload reason (#14914) 2023-11-10 08:59:09 +01:00
Bjorn Lu
b47905577a
feat(hmr): improve circular import updates (#14867) 2023-11-08 17:01:37 +09:00
Bjorn Lu
4150bcb0bd
perf(hmr): implement soft invalidation (#14654) 2023-10-25 22:58:01 +08:00
Arnaud Barré
7acb016fbb
fix(hmr): clean importers in module graph when file is deleted (#14315) 2023-10-19 17:49:40 +08:00
翠 / green
6ebac4c007
chore: reduce test flakiness (#14684) 2023-10-19 15:38:06 +09:00
Arnaud Barré
40ee2457a7
fix(hmr): add timestamp for assets in dev (#13371) 2023-10-17 18:39:08 +02:00
Bjorn Lu
3e264ef30d
test(hmr): improve #3033 fix description (#14645) 2023-10-16 12:48:52 +02:00
vincer2040
31333bbb77
feat: add off method to ViteHotContext (issue #14185) (#14518) 2023-10-11 22:57:37 +08:00
patak
f589ac0909
fix: revert #13073, use consistent virtual module ID in module graph (#13734) 2023-07-06 17:35:45 +02:00
Yunfei He
1143e0b5a0
fix(hmr): only invalidate lastHMRTimestamp of importers if the invalidated module is not a HMR boundary (#13024)
Co-authored-by: ArnaudBarre <arnaud.barre72@gmail.com>
2023-06-21 20:45:32 +02:00
Bjorn Lu
2218099ad3
test(hmr): remove timeout causing flakiness (#13449) 2023-06-07 09:59:31 +02:00
fi3ework
aa1776f2db
fix: use consistent virtual module ID in module graph (#13073) 2023-06-06 15:42:40 +02:00
翠 / green
b28c8472a8
test: rewrite waitForNavigation to waitForEvent('load') (#13413) 2023-06-03 16:23:06 +02:00
fi3ework
a8c7eb24a2
test: migrate playgrounds to ESM (#13094) 2023-05-09 11:33:34 +02:00
Nick McCurdy
8582e2dcfb
feat(create-vite): use typescript 5.0 in templates (#12481) 2023-03-30 08:13:26 +02:00
Wei
f6fdc56acd
refactor(playground): move to ESM module and add type check for config (#12131) 2023-02-28 15:56:51 +01:00
翠 / green
081c27f2dd
feat: support import.meta.hot?.accept (#12053) 2023-02-15 19:39:16 +01:00
xunmi
73afe6d4db
fix: replace import.meta.hot with undefined in the production (#11317) 2023-01-26 14:19:11 +01:00
翠 / green
e58a4f00e2
chore: enable @typescript-eslint/ban-ts-comment (#11326) 2022-12-12 11:59:02 +01:00
翠 / green
401647feb4
test: migrate file-delete-restore playground test to hmr playground (#11176) 2022-12-04 21:07:25 +01:00
翠 / green
5170e44920
chore: rename test packages (#11172) 2022-12-04 10:20:45 +01:00
Arnaud Barré
134ce68179
chore: enable prettier trailing commas (#11167) 2022-12-04 08:19:06 +01:00
翠 / green
72f63c5b51
test: reduce hmr test flakiness (#11075) 2022-11-25 16:49:08 +01:00
Arnaud Barré
0d734732da
feat(hmr): invalidate message (#10946) 2022-11-17 22:53:06 +01:00
Espen Hovlandsdal
1f57f84321
feat: add vite:afterUpdate event (#9810) 2022-11-03 20:05:53 +01:00
翠 / green
cab9f19565
test: remove console.log (#10704) 2022-10-29 11:27:35 +00:00
tuchg
ee7c28a46a
fix(hmr): cannot reload after missing import on server startup (#9534) (#10602) 2022-10-25 14:04:21 +02:00
Bjorn Lu
832801153e
feat(server): invalidate module with hmr (#10333) 2022-10-14 11:02:34 +02:00
Bjorn Lu
291174d89c
refactor(types): simplify type exports (#10243)
Co-authored-by: 翠 / green <green@sapphi.red>
2022-09-30 11:29:26 +02:00
Ian VanSchooten
fb8ab1641f
feat: support import.meta.hot.invalidate (#10244)
Co-authored-by: Alec Larson <1925840+aleclarson@users.noreply.github.com>
Co-authored-by: 翠 / green <green@sapphi.red>
2022-09-28 17:11:42 -04:00
翠 / green
da632bf36f
refactor(types): bundle client types (#9966) 2022-09-24 13:52:06 +02:00
Bjorn Lu
71f08e766c
fix(hmr): dedupe virtual modules in module graph (#10144) 2022-09-19 14:34:50 +02:00
翠 / green
86bf776b1f
fix(hmr): duplicated modules because of query params mismatch (fixes #2255) (#9773) 2022-09-01 08:33:06 +02:00
zoomdong
1cf5c78358
chore: remove vitest global options (#9620) 2022-08-12 07:05:13 +02:00