Commit Graph

882 Commits

Author SHA1 Message Date
renovate[bot]
4453d3578b
fix(deps): update all non-major dependencies (#17430)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-10 22:40:16 +08:00
sun0day
f43f71f224
fix(build): allow dynamic import treeshaking when injecting preload (#14221)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-06-06 16:29:24 +02:00
shYkiSto
687c38be86
fix(ssr): resolve interlocking circular dependency issues (#15395)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-06-06 16:21:19 +02:00
renovate[bot]
f2d52f1384
chore(deps): update all non-major dependencies (#17373) 2024-06-03 08:25:55 +02:00
proc07
416184376e
fix(optimize-deps): don't externalize JS files imported with asset extensions (#16242) 2024-05-30 15:58:10 +09:00
翠 / green
8880bc5a9a
feat(asset): support /*@vite-ignore*/ for new URL(, import.meta.url) (#16590) 2024-05-29 22:17:53 +08:00
renovate[bot]
4a89766d83
fix(deps): update all non-major dependencies (#17321)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 12:16:22 +08:00
renovate[bot]
b45922a91d
chore(deps): update all non-major dependencies (#16722)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-20 15:56:38 +08:00
翠 / green
804184654b
fix(css): page reload was not happening with .css?raw (#16455) 2024-05-18 15:38:35 +08:00
翠 / green
95fe5a79c4
fix(css): avoid generating empty JS files when JS files becomes empty but has CSS files imported (#16078) 2024-05-18 15:22:00 +08: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
renovate[bot]
76d1642c3c
chore(deps): update dependency execa to v9 (#16662)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-05-13 15:29:57 +08:00
renovate[bot]
bf2f0145fe
fix(deps): update all non-major dependencies (#16660)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 14:42:44 +08:00
翠 / green
c2a4ce5a77
test: don't skip unicode related tests anymore (#16339) 2024-05-07 16:43:33 +08:00
renovate[bot]
671155337a
fix(deps): update all non-major dependencies (#16603)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-05-07 10:01:16 +02:00
renovate[bot]
2d6a13b0aa
fix(deps): update all non-major dependencies (#16549) 2024-05-01 06:40:18 +02:00
Dr. Ralf S. Engelschall
0e93f588b9
fix: scripts and styles were missing from built HTML on Windows (#16421)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-05-01 06:39:49 +02:00
Bjorn Lu
bb79c9b653
fix(preload): skip preload for non-static urls (#16556) 2024-04-30 10:18:56 +02:00
renovate[bot]
2d50be2a54
fix(deps): update all non-major dependencies (#16488) 2024-04-23 11:27:54 +02:00
Adam Hines
8e54bbd74d
feat: write cspNonce to style tags (#16419) 2024-04-18 10:54:39 +00:00
Adam Hines
b8726357c9
fix(cspNonce): don't overwrite existing nonce values (#16415) 2024-04-18 09:24:26 +02:00
Hiroshi Ogawa
102c2fd5ad
fix: fix accumulated stacks in error overlay (#16393) 2024-04-13 14:48:08 +00:00
renovate[bot]
58a2938a97
fix(deps): update all non-major dependencies (#16376) 2024-04-08 17:17:01 +02:00
Matyáš Racek
c0ec6bea69
perf: reduce size of injected __vite__mapDeps code (#16184)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: 翠 / green <green@sapphi.red>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-04-05 10:30:10 +08:00
Caven
646319cc84
fix: do not access document in /@vite/client when not defined (#16318)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-04-03 12:38:40 +00:00
Hiroshi Ogawa
445c4f2158
fix: fix sourcemap when using object as define value (#15805) 2024-04-03 12:19:35 +02:00
renovate[bot]
a78e265822
chore(deps): update all non-major dependencies (#16325) 2024-04-03 09:07:15 +00: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
renovate[bot]
7caef4216e
fix(deps): update all non-major dependencies (#16258)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-03-26 09:00:34 +01:00
Hiroshi Ogawa
890538a694
fix: skip injecting __vite__mapDeps when it's not used (#16271) 2024-03-26 15:49:07 +09:00
翠 / green
ba5269cca8
fix: fs.deny with globs with directories (#16250) 2024-03-24 13:31:50 +01:00
翠 / green
fbf69d5f6c
fix: dont resolve imports with malformed URI (#16244) 2024-03-23 10:56:58 +01:00
Bjorn Lu
8617e7638e
fix: skip encode if is data uri (#16233) 2024-03-22 13:46:20 +01:00
Hiroshi Ogawa
f184c8032b
fix(optimizer): fix optimizeDeps.include glob syntax for ./* exports (#16230) 2024-03-22 20:34:28 +08:00
btea
9800c738b5
chore: utf8 replaced with utf-8 (#16232) 2024-03-22 20:34:01 +08:00
Hiroshi Ogawa
dad7f4f5a5
fix(runtime): fix sourcemap with prepareStackTrace (#16220) 2024-03-21 10:07:03 +01:00
renovate[bot]
842643d82b
chore(deps): update all non-major dependencies (#16186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 13:23:16 +08:00
patak
98888439e0
feat: formalize waitForRequestsIdle (experimental) (#16135) 2024-03-14 13:52:09 +01:00
翠 / green
7ee426194f
feat(optimizer): show a friendly warning with 404 instead of 504 outdated optimize dep (#16080)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-03-13 15:53:50 +01:00
翠 / green
1d5eec477e
feat: csp nonce support (#16052)
Co-authored-by: Andrew <8158705+maccuaa@users.noreply.github.com>
Co-authored-by: Justin Tay <49700559+justin-tay@users.noreply.github.com>
2024-03-13 15:47:33 +01:00
Dunqing
8cd846cdbf
fix(ssr): crash on circular import (#14441) 2024-03-13 15:03:55 +08:00
moui0
2f95c2bd9e
chore(deps): bump rollup to 4.13.0 (#15295) 2024-03-12 22:43:56 +08:00
Hiroshi Ogawa
8e54af67db
fix(ssr): apply alias to resolvable dependencies during dev (#15602) 2024-03-12 22:14:51 +08:00
Philipp Zerelles
b10d1628d5
fix: encode URLs correctly (fix #15298) (#15311)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-03-12 21:39:57 +08:00
Bjorn Lu
57628dc780
fix(hmr): call dispose before prune (#15782) 2024-03-12 21:36:54 +08:00
Bjorn Lu
17d71ecf74
fix(css): treeshake css modules (#16051) 2024-03-12 21:13:13 +08:00
翠 / green
75a9fc668f
feat: accept assets to be specified as input (#16087) 2024-03-12 21:10:53 +08:00
Senao
03b9674cb2
feat: support for self-referencing (#16068) 2024-03-12 21:10:04 +08:00
翠 / green
30e5ae3616
fix: upgrade esbuild to 0.20.x (#16079) 2024-03-12 21:07:55 +08:00
renovate[bot]
a862ecb941
chore(deps): update all non-major dependencies (#16131)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-03-11 14:36:12 +08:00
翠 / green
eef9da13d0
fix(worker): throw error when circular worker import is detected and support self referencing worker (#16103) 2024-03-06 20:03:33 +09:00
翠 / green
8f74ce4ff3
fix: escape single quote when relative base is used (#16060) 2024-03-05 09:09:59 +01:00
翠 / green
ab823ab618
fix: import with query with imports field (#16085) 2024-03-04 18:58:53 +01:00
翠 / green
11cceeab39
revert: "fix: upgrade esbuild to 0.20.x" (#16072) 2024-03-02 16:53:01 +01:00
James Garbutt
899d9b1d27
fix: upgrade esbuild to 0.20.x (#16062)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2024-03-01 14:03:01 +01:00
renovate[bot]
7cfe80d0df
chore(deps): update all non-major dependencies (#16028) 2024-02-27 07:28:14 +01:00
Vladimir
57463fc53f
fix(runtime): runtime HMR affects only imported files (#15898) 2024-02-22 14:23:27 +01:00
翠 / green
4144781fbc
fix(scanner): respect experimentalDecorators: true (#15206) 2024-02-21 14:32:29 +01:00
Hiroshi Ogawa
aff54e1d5e
fix: __vite__mapDeps code injection (#15732) 2024-02-21 21:05:09 +08:00
翠 / green
a839c14b19
fix(css): import using imports field in CS was not resolved (#15985)
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
2024-02-20 14:07:48 +01:00
翠 / green
4fe971fda3
fix: resolve directory correctly when fs.cachedChecks: true (#15983) 2024-02-20 14:05:07 +01:00
renovate[bot]
571a3fde43
fix(deps): update all non-major dependencies (#15959)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: patak <matias.capeletto@gmail.com>
2024-02-20 16:06:26 +09:00
翠 / green
63a39c244b
refactor(runtime): minor tweaks (#15904) 2024-02-14 16:16:55 +01:00
renovate[bot]
d16ce5db2f
chore(deps): update all non-major dependencies (#15874)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-12 20:35:52 +08:00
Hiroshi Ogawa
ea091853e0
test: remove unnecessary NODE_ENV override (#15738) 2024-02-12 09:31:28 +01:00
Jay Wang
570e0f1852
fix(worker): support UTF-8 encoding in inline workers (fixes #12117) (#15866)
Signed-off-by: Jay Wang <jay@zijie.wang>
Co-authored-by: 翠 / green <green@sapphi.red>
2024-02-12 08:34:51 +01:00
renovate[bot]
e0a6ef2b9e
fix(deps): update all non-major dependencies (#15803)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-02-08 10:43:45 +01:00
Vladimir
8b3ab07718
feat: experimental Vite Runtime API (#12165) 2024-02-01 12:59:21 +01:00
renovate[bot]
4d9363ad6b
fix(deps): update all non-major dependencies (#15675)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: patak <matias.capeletto@gmail.com>
2024-01-26 17:40:13 +09:00
patak
fc2bceb09f
test: consolidate spec names in all playgrounds (#15718) 2024-01-26 08:25:41 +01:00
patak
814ad7ce0a
test: fix proxy-bypass and proxy-hmr ports (#15716) 2024-01-26 06:15:31 +01:00
patak
a05c70977a
feat: enable fs.cachedChecks by default (#15704) 2024-01-25 12:06:01 +01:00
이채준 - CJ Lee
6c4bf266a0
fix(node): remove timestamp query of staticImportedUrls (#15663) 2024-01-23 20:51:00 +01:00
btea
74382b9db6
fix(build): build error message output twice (#15664) 2024-01-24 00:37:16 +08:00
翠 / green
acd795f552
perf: use thread for preprocessors (#13584) 2024-01-22 10:27:09 +00:00
Bjorn Lu
639bbd65c0
fix(ssr): support externalized builtins for webworker (#15656) 2024-01-19 17:08:40 +01:00
Bjorn Lu
526cf23410
fix(ssr): mark builtin modules as side effect free (#15658) 2024-01-19 16:19:35 +01:00
patak
89be67de47
fix: fs deny for case insensitive systems (#15653) 2024-01-19 14:02:51 +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
renovate[bot]
109fb805fd
fix(deps): update all non-major dependencies (#15603)
Co-authored-by: patak <matias.capeletto@gmail.com>
2024-01-16 15:22:49 +01:00
Bjorn Lu
0cacfadf3a
perf: avoid parseRequest (#15617) 2024-01-16 11:00:19 +01:00
Hiroshi Ogawa
af2aa09575
fix(ssr): externalize network imports during ssrLoadModule (#15599) 2024-01-15 16:50:47 +00:00
patak
757844f0bd
refactor: remove build time pre-bundling (#15184)
Co-authored-by: 翠 / green <green@sapphi.red>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-15 14:29:54 +01:00
翠 / green
ed56d96cec
fix(css): .css?url support (#15259) 2024-01-12 09:07:22 +00:00
patak
67a50f17a0
test: fixed port for lib dev test (#15580) 2024-01-12 10:02:01 +01:00
Arnaud Barré
4d1342ebe0
feat: build.assetsInlineLimit callback (#15366) 2024-01-12 08:56:23 +00:00
renovate[bot]
ab56227d89
fix(deps): update all non-major dependencies (#15375)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-11 23:17:16 +08:00
Bjorn Lu
a1f80822ea
chore: use eslint-plugin-i (#15569) 2024-01-11 14:21:58 +01:00
patak
ce5a2edbce
test: ignore net:ERR_ABORTED on flacky html proxy encoded test (#15562) 2024-01-11 07:43:34 +01:00
smeng9
21a52e65b5
fix(css): skip url replace for function calls (#15544) 2024-01-10 15:19:38 +08:00
smeng9
8ccf7222e9
fix(css): @import with .css in node_modules importing a different package failed to resolve (#15000)
Co-authored-by: Shaoyu Meng <shaoyu>
Co-authored-by: 翠 / green <green@sapphi.red>
2024-01-08 22:51:14 +01:00
Bjorn Lu
953e697ea4
feat(glob-import): deprecate as option (#14420) 2024-01-08 20:28:11 +01:00
Bjorn Lu
6ace32b41d
feat(hmr): reload for circular imports only if error (#15118) 2024-01-08 18:18:55 +01:00
Bjorn Lu
a621de8dc5
fix: update javascript mime type to text/javascript (#15427) 2024-01-08 16:05:12 +01:00
Dunqing
f8c6a341fb
fix(sourcemap): sourcemap is incorrect when sourcemap has sources: [null] (#14588)
Co-authored-by: 翠 / green <green@sapphi.red>
2024-01-08 15:17:12 +01:00
Hiroshi Ogawa
d2aa0969ee
fix: inject __vite__mapDeps code before sourcemap file comment (#15483) 2024-01-02 17:00:49 +09:00
Bjorn Lu
5ea9edbc9c
fix(html): handle offset magic-string slice error (#15435) 2024-01-01 12:00:47 +08:00
이채준 - CJ Lee
1bbff16ff8
fix(build): use base64 for inline SVG if it contains both single and double quotes (#15271) 2023-12-15 16:35:39 +01:00
Senao
08d093cb7d
fix(worker): replace import.meta correctly for IIFE worker (#15321)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-12-12 15:57:42 +01:00
patak
c9b61c47b0
perf: cached fs utils (#15279) 2023-12-12 10:32:51 +01:00
renovate[bot]
bb07f605cc
fix(deps): update all non-major dependencies (#15304) 2023-12-12 09:22:43 +01:00
Nick De Villiers
ea6a7a6eb8
fix(build): decode urls in CSS files (fix #15109) (#15246) 2023-12-12 06:53:01 +01:00
Bjorn Lu
8ad81b470c
fix(html): skip inlining icon and manifest links (#14958)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-12-06 22:08:44 +08:00
patak
275ca5a6e2
test: missing __dirname in playground (#15243) 2023-12-06 01:31:59 +09:00
Bjorn Lu
002d5c07e9
chore: remove unused test files (#15239) 2023-12-06 01:29:41 +09:00
renovate[bot]
ad3adda721
fix(deps): update all non-major dependencies (#15233) 2023-12-04 09:54:15 +01:00
翠 / green
0348137a23
refactor: use dedicated regex methods (#15228) 2023-12-03 13:37:17 +01:00
patak
5b85040481
fix: proxy html path should be encoded (#15223) 2023-12-03 11:09:40 +01:00
翠 / green
4380b82310
test: reduce optimize-deps playground flaky fail (#15205) 2023-12-02 15:40:45 +01:00
翠 / green
d8001c5463
fix: emit vite:preloadError for chunks without deps (#15203) 2023-12-01 14:21:51 +01:00
翠 / green
2fce647eda
chore: update vitest to 1.0.0-beta.6 (#15194) 2023-11-30 15:37:46 +01:00
Dominik G
4a111aafd5
fix(resolve): respect order of browser in mainFields when resolving (#15137) 2023-11-29 11:52:39 +01:00
patak
793cebd2ee
test: avoid magic number on cli playground spec (#15168) 2023-11-29 11:52:10 +01:00
patak
9474c4be27
feat: preserve vite.middlewares connect instance after restarts (#15166) 2023-11-29 11:44:06 +01:00
Bjorn Lu
ec401da074
fix(define): allow define process.env (#15173) 2023-11-29 10:37:05 +01:00
patak
642f9bcb5d
refactor: align with Promise.withResolvers() (#15171) 2023-11-29 08:13:27 +01:00
翠 / green
811e392b77
fix(css): use non-nested chunk name if facadeModule is not CSS file (#15155) 2023-11-28 15:36:57 +01:00
翠 / green
ef403c0e61
fix(css): render correct asset url when CSS chunk name is nested (#15154) 2023-11-27 09:21:53 +01:00
renovate[bot]
7ff2c0afe8
chore(deps): update all non-major dependencies (#15145) 2023-11-27 12:15:40 +08:00
翠 / green
fd31412131
test: skip unicode test on windows instead of lowering the Node version (#15096) 2023-11-22 11:15:57 +01:00
翠 / green
6fcceebe34
fix: make htmlFallback more permissive (#15059) 2023-11-21 13:27:41 +00:00
lsdsjy
47551a6f32
fix(legacy): preserve async generator function invocation (#15021) 2023-11-21 13:00:58 +01:00
Adam Koppe
b9ee620108
fix(legacy): error in build with --watch and manifest enabled (#14450)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2023-11-20 09:22:29 +01:00
Bjorn Lu
a0ab85bdf4
fix: handle addWatchFile in load hooks (#14967) 2023-11-13 19:06:58 +01:00
renovate[bot]
0bb3995a7d
fix(deps): update all non-major dependencies (#14961)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-11-13 09:25:20 +01:00
翠 / green
28ccede525
fix(css): correctly set manifest source name and emit CSS file (#14945) 2023-11-11 23:00:12 +08:00
翠 / green
b24b95119b
fix: add watch in fallback file load (#14938) 2023-11-10 10:00:22 +00:00
Arnaud Barré
60a020e592
feat(hmr): add full reload reason (#14914) 2023-11-10 08:59:09 +01:00
Bjorn Lu
2687dbbd4e
fix(worker): prevent inject esm in classic workers (#14918) 2023-11-09 10:33:25 +01:00
patak
e49ef028bb
docs(ssr): properly handle vite.middlewares after restart (#14917)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-11-09 09:53:37 +01:00
patak
84c5ff6944
fix: injectQuery check with double slash in the url (#14910) 2023-11-09 09:25:02 +01:00
Bjorn Lu
b47905577a
feat(hmr): improve circular import updates (#14867) 2023-11-08 17:01:37 +09:00
patak
b5653d3075
fix(build): mixed external and transpiled srcset (#14888) 2023-11-07 10:01:48 +01:00
patak
bd4d29f9fc
fix: resovedUrls is null after server restart (#14890) 2023-11-07 08:14:47 +00:00
patak
0873bae0cf
fix: processNodeUrl for srcset (#14870) 2023-11-06 10:40:25 +00:00
翠 / green
1426f57415
test: use isPreview instead of previewBase (#14878) 2023-11-06 09:32:24 +01:00
renovate[bot]
e5094e5bf2
fix(deps): update all non-major dependencies (#14883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-06 13:18:58 +08:00
翠 / green
6516607c0b
chore: revert "fix: don't add ?import for @vite-ignoreed import (#14851)" (#14866) 2023-11-03 08:46:35 +01:00
翠 / green
42fee9ee87
fix: don't add ?import for @vite-ignoreed import (#14851) 2023-11-02 14:29:48 +01:00
Bjorn Lu
275907b6a3
refactor: simplify build optimizer node_env handling (#14829) 2023-11-02 00:14:33 +08:00
Bjorn Lu
72340211d3
refactor(esbuild)!: remove esbuild 0.17 -> 0.18 compat (#14804) 2023-10-30 16:58:27 +00:00
Bjorn Lu
4f71ae8736
fix(html)!: align html serving between dev and preview (#14756)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-10-30 21:57:15 +08:00
renovate[bot]
d5d96e7127
fix(deps): update all non-major dependencies (#14729)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-28 23:33:46 +08:00
Bjorn Lu
d6d1ef156a
fix(html): ignore rewrite external urls (#14774) 2023-10-27 17:09:14 +08:00
Bjorn Lu
e4c801c552
feat(define): handle replacement with esbuild (#11151)
Co-authored-by: Tony Trinh <tony19@gmail.com>
2023-10-26 11:30:05 +08:00
Bjorn Lu
4150bcb0bd
perf(hmr): implement soft invalidation (#14654) 2023-10-25 22:58:01 +08:00
Bjorn Lu
43cc3b9e6d
feat(resolve)!: remove resolve.browserField (#14733) 2023-10-24 22:28:53 +08:00