Commit Graph

907 Commits

Author SHA1 Message Date
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
Bjorn Lu
d520388fca
fix(resolve): make directory package.json check best effort (#14626) 2023-10-23 09:59:34 +02:00
Bjorn Lu
eef4aaa063
fix(assets): fix svg inline in css url (#14714) 2023-10-20 12:53:45 +00:00
Bjorn Lu
5786837a02
feat!: remove ssr proxy for externalized modules (#14521) 2023-10-19 17:59:11 +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
patak
9d09dfe539
fix!: worker.plugins is a function (#14685)
Co-authored-by: jamsinclair <jamsinclair@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-10-19 11:36:24 +02:00
Arnaud Barré
5acda5e10a
feat(build)!: inline SVGs (#14643) 2023-10-19 15:36:29 +08:00
翠 / green
6ebac4c007
chore: reduce test flakiness (#14684) 2023-10-19 15:38:06 +09:00
Bjorn Lu
dd610b5f77
fix(assets): make timestamp invalidation lazy (#14675) 2023-10-18 17:15:57 +08:00
Arnaud Barré
f627b91c23
fix(manifest): include assets referenced in html (#14657) 2023-10-18 12:52:36 +08:00
翠 / green
dee6067ec7
feat!: rollup v4 (#14508) 2023-10-18 00:54:47 +08:00
Arnaud Barré
40ee2457a7
fix(hmr): add timestamp for assets in dev (#13371) 2023-10-17 18:39:08 +02:00
翠 / green
4496ae7883
fix(html): srcset pointing image in public dir wasn't working during dev (#14663) 2023-10-17 09:32:53 +02:00
翠 / green
3c16b71d4f
test: reduce ssr-conditions test flakiness (#14662) 2023-10-17 08:56:19 +02:00
Bjorn Lu
da80372ef5
feat: add server.warmup option (#14291) 2023-10-16 23:53:47 +08:00
Bjorn Lu
3e264ef30d
test(hmr): improve #3033 fix description (#14645) 2023-10-16 12:48:52 +02:00
renovate[bot]
21017a9408
fix(deps): update all non-major dependencies (#14635)
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2023-10-16 10:16:31 +02:00
Dunqing
f2aadb043f
chore: remove server.host option for e2e test (#14606) 2023-10-14 20:05:58 +09:00
Dunqing
1243c2f1cc
test: update test for inline sourcemap (#14597) 2023-10-14 19:53:21 +09:00
이채준 - CJ Lee
cd82648b0f
test(optimizer): remove long named file that cause OS error on Windows (#14608) 2023-10-13 09:23:21 +02:00
Artur
40fd2d9bf4
fix!: return 404 for resources requests outside the base path (#5657)
Co-authored-by: sapphi-red <green@sapphi.red>
2023-10-12 20:22:36 +02:00
翠 / green
ea47b8fa51
fix(html): import expression in classic script for dev (#14595) 2023-10-12 13:08:47 +02:00
翠 / green
a4a17b8e3e
fix(html): inline style attribute not working in dev (#14592) 2023-10-12 10:33:07 +02:00
翠 / green
0a38e3b395
fix(html): relative paths without leading dot wasn't rewritten (#14591) 2023-10-12 09:06:11 +02:00
vincer2040
31333bbb77
feat: add off method to ViteHotContext (issue #14185) (#14518) 2023-10-11 22:57:37 +08:00
Dunqing
261633a1a1
fix(proxy): correct the logic of bypass returning false (#14579) 2023-10-11 09:07:24 +02:00
이채준 - CJ Lee
a3b6d8da6b
fix(optimizer): limit bundled file name length to 170 characters (#14561)
Co-authored-by: patak <matias.capeletto@gmail.com>
2023-10-10 16:01:41 +08:00
Gajus Kuizinas
6f12fd8bd2
perf: reduce preload marker markup size (#14550) 2023-10-10 15:51:56 +08:00
三咲智子 Kevin Deng
8d18a91012
refactor!: remove jest condition (#14544) 2023-10-09 20:13:35 +08:00
renovate[bot]
6868480d00
fix(deps): update all non-major dependencies (#14559) 2023-10-09 08:25:29 +00:00
翠 / green
5004d004e7
fix(lib): esbuild helper functions injection not working with named exports (#14539) 2023-10-09 16:10:39 +08:00
Aleen
e7d7a6f4ee
fix(legacy)!: should rename x.[hash].js to x-legacy.[hash].js (#11599)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-10-06 11:55:09 +02:00
Marc MacLeod
d0afc3948b
feat(ssr): support for ssr.resolve.conditions and ssr.resolve.externalConditions options (#14498) 2023-10-05 16:54:06 +08:00
renovate[bot]
eb204fd3c5
fix(deps): update all non-major dependencies (#14510)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2023-10-04 16:45:17 +08:00
翠 / green
21ae371692
test: fix flaky legacy structuredClone fail (#14522) 2023-10-03 14:01:44 +02:00
翠 / green
bf3cc83929
test: cleanup testConfig.baseRoute and use testConfig.previewBase (#14475) 2023-10-03 19:13:03 +09:00
André Costa
f80ff77a43
fix(resolve): support submodules of optional peer deps (#14489) 2023-10-02 16:51:40 +08:00
sapphi-red
fddc1518d1 fix(preview): allow path containing . to fallback to index.html 2023-09-29 14:42:06 +02:00
sapphi-red
dae6d0aa63 fix: allow path ending with .html to fallback to index.html 2023-09-29 14:42:06 +02:00
Dunqing
ec7ee22cf1
fix(analysis): warnings for dynamic imports that use static template literals (#14458)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-09-28 07:30:24 +00:00
翠 / green
2de425d028
test: fix "WebSocket server error: Port is already in use" happening in json playground (#14476) 2023-09-26 14:33:30 +02:00
Bjorn Lu
99b0645c4c
fix(import-analysis): preserve importedUrls import order (#14465) 2023-09-26 10:18:16 +02:00
Kyℓe Hensel
27e5b1114c
fix(legacy): fix broken build when renderModernChunks=false & polyfills=false (fix #14324) (#14346) 2023-09-26 16:43:08 +09:00
翠 / green
669a38d61d
test: tweak lib helpers inject to test "use strict" (#14452) 2023-09-25 14:56:01 +08:00
renovate[bot]
b77bff0b93
fix(deps): update all non-major dependencies (#14460)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-25 15:36:37 +09:00
renovate[bot]
68638f7b0b
fix(deps): update all non-major dependencies (#14092)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-09-19 15:52:21 +08:00
翠 / green
74fa024db4
fix!: put manifest files in .vite directory by default (#14230) 2023-09-18 17:40:49 +09:00
翠 / green
e9b1e85ab9
feat: use import.meta.url instead of self.location (#14377) 2023-09-15 18:04:44 +08:00
Bjorn Lu
55a3b4fb2b
fix(sourcemap): dont inject fallback sourcemap if have existing (#14370) 2023-09-15 18:22:47 +09:00
Gaubee
7371c5caac
fix(worker): inline es worker does not work in build mode (#14307)
Co-authored-by: sapphi-red <green@sapphi.red>
2023-09-15 16:58:36 +09:00
sapphi-red
21bbceb800 fix(resolve): support pkg?query 2023-09-15 16:54:27 +09:00
sapphi-red
fc054542a3 feat(css): stop injecting ?used 2023-09-15 16:54:27 +09:00
sapphi-red
b6c44cd693 feat(css)!: remove css default export 2023-09-15 16:54:27 +09:00
翠 / green
a99590762d
fix: use relative path for sources field (#14247) 2023-09-10 21:46:18 +09:00
Bjorn Lu
19bf0f1d0b
fix(css): reset render cache on renderStart (#14326) 2023-09-08 09:07:46 +02:00
sun0day
ab5c421571
test(worker): correct sourcemap boundary after injecting env (#14277) 2023-09-08 12:39:52 +08:00
翠 / green
4fb617f0f5
chore: remove unused packages (#14310) 2023-09-07 17:17:39 +09:00
sun0day
2b80089491
fix(css): remove pure css chunk sourcemap (#14290) 2023-09-05 20:27:52 +02:00
翠 / green
627159d59b
fix: handle sourcemap correctly when multiple line import exists (#14232) 2023-08-29 15:22:41 +02:00
宋铄运 (Alan Song)
91a18c2f7d
fix: use string manipulation instead of regex to inject esbuild helpers (#14094) 2023-08-25 12:50:38 +09:00
翠 / green
1ae4cbd20f
feat!: allow path containing . to fallback to index.html (#14142) 2023-08-24 13:04:19 +02:00
ihch
1f214a4df0
feat(worker): support a way to name the worker (#14032) 2023-08-24 19:30:22 +09:00
翠 / green
0156bd2cd7
fix: breakpoints in JS not working (#13514) 2023-08-22 21:31:25 +09:00
patak
443c235bee
feat: copyPublicDir out of experimental (#14051) 2023-08-21 17:51:26 +08:00
翠 / green
7f302bcafb
chore(deps): update miniflare to v3 (#14107) 2023-08-21 17:50:04 +08:00
Naru
f97ef58787
chore: use "kB" everywhere with the correct definition (#14061) 2023-08-21 16:16:05 +08:00
Aleen
fd9a2ccdf2
feat(css): build assets with the entry name when it is an entry point (#11578)
Co-authored-by: sapphi-red <green@sapphi.red>
2023-08-20 01:23:21 +09:00
翠 / green
86cbf6977d
fix(glob): trigger HMR for glob in a package (#14117) 2023-08-16 16:48:43 +02:00
Prana Adiwira
7682a625fd
fix(css): trim esbuild's minified css (#13893) 2023-08-16 07:45:59 +02:00
Bjorn Lu
2c1a45c86c
feat!: bump minimum node version to 18 (#14030) 2023-08-15 15:28:17 +02:00
翠 / green
0768625ada
test: remove plugin-vue from tailwind playground (#14073) 2023-08-14 11:51:05 +02:00
renovate[bot]
b0ebf5c69d
chore(deps): update all non-major dependencies (#14034) 2023-08-07 16:08:41 +02:00
Bjorn Lu
4021a0e214
chore: fix eslint warnings (#14031) 2023-08-07 11:03:39 +02:00
patak
4479431312
fix: dynamic import vars ignored warning (#14006) 2023-08-07 15:27:05 +08:00
renovate[bot]
a1b519e2c7
chore(deps): update all non-major dependencies (#13938)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-08-06 16:36:01 +08:00
disservin
7a77aaf28b
fix(build): silence warn dynamic import module when inlineDynamicImports true (#13970) 2023-08-01 10:58:39 +02:00
patak
488085d631
fix: modulePreload false (#13973) 2023-07-31 11:52:56 +02:00
Xinxin He
1ab06a86fc
fix(importAnalysis): strip url base before passing as safeModulePaths (#13712)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
2023-07-29 20:28:40 +02:00
Bjorn Lu
b9a8d65fd6
perf: use magic-string hires boundary for sourcemaps (#13971) 2023-07-29 15:56:48 +02:00
sun0day
844451c015
fix(importMetaGlob): avoid unnecessary hmr of negative glob (#13646)
Co-authored-by: fuhao.xu <fuhao.xu@yitu-inc.com>
2023-07-28 15:03:36 +02:00
patak
89a3db0d9f
fix: multiple entries with shared css and no JS (#13962) 2023-07-28 11:50:31 +02:00
Hugo Nogueira
6b5609424c
fix: lightningcss fails with html-proxy (#13776)
Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
2023-07-24 14:55:08 +02:00
翠 / green
883089c10d
fix(html): support import.meta.env define replacement without quotes (#13425) 2023-07-24 20:10:38 +08:00
patak
1292ad08a0
test: restrict iife helpers injection (#13918) 2023-07-23 20:23:52 +02:00
renovate[bot]
5a56941a89
chore(deps): update dependency prettier to v3 (#13759)
Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
2023-07-19 09:53:25 +02:00
Haoqun Jiang
c971f26e45
fix(types): narrow down the return type of defineConfig (#13792) 2023-07-17 11:35:12 +02:00
renovate[bot]
975a631ec7
fix(deps): update all non-major dependencies (#13872) 2023-07-17 11:34:28 +02:00
Bjorn Lu
e8880f0719
fix(esbuild): enable experimentalDecorators by default (#13805) 2023-07-13 14:51:58 +02:00
이채준 - CJ Lee
85bdcda747
feat(client): close vite-error-overlay with Escape key (#13795) 2023-07-13 20:41:34 +08:00
patak
72a69853e7
test: ignore order of HMR updates in tailwind spec (#13821) 2023-07-13 13:42:51 +02:00
patak
f402cd278c
test: tailwind playground flakiness (#13793) 2023-07-12 10:14:36 +02:00
renovate[bot]
8ead116485
fix(deps): update all non-major dependencies (#13758) 2023-07-11 15:44:18 +02:00
patak
89d01ebb8e
fix: avoid early error when server is closed in ssr (#13787)
Co-authored-by: Bjorn Lu <34116392+bluwy@users.noreply.github.com>
2023-07-11 15:41:52 +02:00
patak
8f109a67bd
test: fix playground config variants (#13725) 2023-07-07 13:09:18 +02:00
patak
f589ac0909
fix: revert #13073, use consistent virtual module ID in module graph (#13734) 2023-07-06 17:35:45 +02:00
sun0day
71516db343
fix(define): stringify object parse error in build mode (#13600) 2023-07-05 11:52:37 +02:00
renovate[bot]
02c6bc3864
fix(deps): update all non-major dependencies (#13701) 2023-07-04 12:03:18 +02:00
Hugo Nogueira
8517645b57
fix: lightningCSS should load external URL in CSS file (#13692)
Co-authored-by: Arnaud Barré <arnaud.barre@carbometrix.com>
2023-07-03 16:06:23 +02:00
Ivan Nikolić
2d9008e81d
fix(css): use esbuild legalComments config when minifying CSS (#13661) 2023-06-30 16:13:48 +08:00
renovate[bot]
c72fb9b91a
chore(deps): update all non-major dependencies (#13633) 2023-06-26 08:39:16 +02:00
sun0day
5497abe757
chore: upgrade rollup to 3.25.2 (#13608) 2023-06-25 17:29:58 +02:00
sun0day
f8868afb5e
fix(indexHtml): decode html URI (#13581) 2023-06-22 11:27:08 +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
Arnaud Barré
c6c5d49d15
feat(css): add support for Lightning CSS (#12807) 2023-06-19 15:46:46 +02:00
renovate[bot]
3ea05342d4
chore(deps): update all non-major dependencies (#13553) 2023-06-19 12:56:26 +02:00
divdavem
711dd80761
fix: allow using vite as a proxy for another vite server (#13218)
Co-authored-by: sapphi-red <green@sapphi.red>
2023-06-15 12:49:41 +00:00
Daniel Roe
2eca54eb73
feat: emit event to handle chunk load errors (#12084) 2023-06-15 14:37:02 +02:00
shYkiSto
8fe69524d2
fix: keep track of ssr version of imported modules separately (#11973) 2023-06-15 07:27:09 +02:00
翠 / green
1fd9919c9a
fix(optimizer): include exports for css modules (#13519) 2023-06-14 14:43:48 +02:00
Ryan Tsao
9e1086b55b
fix(ssr): fix crash when a pnpm/Yarn workspace depends on a CJS package (#9763) 2023-06-13 22:03:52 +02:00
renovate[bot]
bd09248e50
fix(deps): update all non-major dependencies (#13488) 2023-06-12 11:49:52 +02:00
fi3ework
127c334436
feat(build): warn dynamic import module with a static import alongside (#12850) 2023-06-10 13:40:25 +02:00
翠 / green
3a98558f78
feat: import public non-asset URL (#13422) 2023-06-09 14:09:21 +02:00
Bjorn Lu
2c0fabae49
feat(html): support image set in inline style (#13473) 2023-06-09 11:51:00 +02:00
renovate[bot]
123ef4c47c
fix(deps): update all non-major dependencies (#13059)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-08 11:56:21 +02:00
翠 / green
d814d6c567
fix(deps): update sirv to 2.0.3 (#13057) 2023-06-07 12:15:23 +02:00
Mateusz Burzyński
367920b6c7
fix(resolve): always use module condition (#13370) 2023-06-07 10:28:57 +02:00
Bjorn Lu
779251599f
feat(optimizer): support glob includes (#12414) 2023-06-07 10:13:24 +02:00
Bjorn Lu
2218099ad3
test(hmr): remove timeout causing flakiness (#13449) 2023-06-07 09:59:31 +02:00
yoho
2bd6077722
feat(css): support at import preprocessed styles (#8400)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-06 17:07:14 +02:00
fi3ework
aa1776f2db
fix: use consistent virtual module ID in module graph (#13073) 2023-06-06 15:42:40 +02:00
sun0day
e355c9ccc5
feat(importMetaGlob): support sub imports pattern (#12467)
Co-authored-by: patak <matias.capeletto@gmail.com>
2023-06-06 15:29:05 +02:00
翠 / green
b28c8472a8
test: rewrite waitForNavigation to waitForEvent('load') (#13413) 2023-06-03 16:23:06 +02:00
patak
813ddd6155
fix: fs.deny with leading double slash (#13348) 2023-05-26 10:17:52 +00:00
Jonas Kaltenbach
d5d9a3155c
fix(assetImportMetaUrl): allow ternary operator in template literal urls (#13121) 2023-05-16 16:34:48 +02:00
Arnaud Barré
7d80a47d6b
fix: don't inject CSS sourcemap for direct requests (#13115)
Co-authored-by: sapphi-red <green@sapphi.red>
2023-05-15 12:24:06 +02:00
fi3ework
88c855eadc
fix(ssr): stacktrace uses abs path with or without sourcemap (#12902)
Co-authored-by: sapphi-red <green@sapphi.red>
2023-05-15 12:20:23 +02:00
翠 / green
eeb0617bed
fix: call tryFsResolve for relative new URL(foo, import.meta.url) (#13142) 2023-05-10 14:58:02 +02:00
fi3ework
a8c7eb24a2
test: migrate playgrounds to ESM (#13094) 2023-05-09 11:33:34 +02:00
Evan You
8a37de604f
fix(scan): handle html script tag attributes that contain ">" (#13101) 2023-05-05 11:59:06 +02:00
sun0day
7089528b7c
fix(assetImportMetaUrl): reserve dynamic template literal query params (#13034) 2023-05-04 12:39:41 +08:00
sun0day
8f4cf0752a
fix(define): incorrect raw expression value type in build (#13003) 2023-04-30 16:46:13 +08:00
sun0day
fe73198d24
test(resolve): ssr deep import resolve (#13022) 2023-04-27 14:35:43 +02:00
patak
bd86375c16
feat: optimize deps option to turn off auto discovery (#13000) 2023-04-26 10:25:58 +02:00
renovate[bot]
5731ac9caa
chore(deps): update all non-major dependencies (#12805)
Co-authored-by: sapphi-red <green@sapphi.red>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-04-26 09:07:06 +02:00
sun0day
ef7b720432
test(server): vite server restart flow (#12777) 2023-04-25 15:53:04 +00:00
Bjorn Lu
06afbfb5d6
test(dynamic-import): fix multiline test (#12996) 2023-04-25 14:52:59 +02:00
patak
31f8b519d2
refactor: simplify crawlEndFinder (#12868) 2023-04-17 10:17:23 +02:00
patak
fa3087933d
fix: build time deps optimization, and ensure single crawl end call (#12851) 2023-04-14 17:21:33 +02:00
patak
0212b1b0aa
test: relax tsconfig json load error regex (#12859) 2023-04-14 15:54:18 +02:00
yangxingyuan
66ec31caa0
test: resolve using absolute dep path (#5495)
Co-authored-by: patak <matias.capeletto@gmail.com>
2023-04-09 12:06:06 +02:00
Bjorn Lu
46bdf7dbfa
fix(css): resolve at import from dependency basedir (#12796) 2023-04-09 07:30:12 +02:00
sun0day
b91135c009
test(css): deterministic css emit with the same file basename (#12773) 2023-04-08 02:02:39 +08:00
patak
f09551f18d
fix: ignore sideEffects for scripts imported from html (#12786) 2023-04-07 17:36:09 +00:00
翠 / green
ddefc064ba
fix(worker): asset in iife worker and relative base (#12697) 2023-04-07 18:55:15 +02:00
Arnaud Barré
9c37cc1148
chore: use @vitejs/release-scripts (#12682) 2023-04-05 09:43:16 +00:00
翠 / green
be9505041b
fix(ssr): load sourcemaps alongside modules (#11780)
Co-authored-by: Justice Almanzar <superdash993@gmail.com>
2023-04-04 23:07:09 +02:00
sun0day
466b6e9419
test(worker): add test for not emitting worker manifest (#12705) 2023-04-03 09:44:02 +02:00
翠 / green
56802b1a0b
fix: leave fully dynamic import.meta.url asset (fixes #10306) (#10549) 2023-04-02 14:21:16 +02:00
sun0day
65f5ed2e35
fix(worker): worker import.meta.url should not depends on document in iife mode (#12629)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-04-02 10:58:15 +02:00
sun0day
1f011d8e02
test: throw element not found error (#12665) 2023-03-30 17:22:08 +00:00
Nick McCurdy
8582e2dcfb
feat(create-vite): use typescript 5.0 in templates (#12481) 2023-03-30 08:13:26 +02:00
翠 / green
d0516398b4
fix: output combined sourcemap in importAnalysisBuild plugin (#12642) 2023-03-29 21:29:49 +02:00
sun0day
1953f3f33b
test(css): css-codesplit flaky test (#12653) 2023-03-29 17:43:45 +00:00
翠 / green
bd54f54275
test: fix flaky assets/url-base test fail (#12626) 2023-03-28 11:05:58 +02:00
翠 / green
8288ce6a50
test: don't share cacheDir among different configs (#12625) 2023-03-28 10:37:38 +02:00
Ari Perkkiö
2d9e691c08
test: resolve ts extension when query params used (#12586) 2023-03-26 12:22:13 +02:00
Alex Miller
46d1352baf
fix(html): public asset urls always being treated as paths (fix #11857) (#11870) 2023-03-22 11:07:07 +01:00
翠 / green
688a55787a
test: move ssr tests from plugin-react (#12528) 2023-03-22 09:12:02 +00:00
renovate[bot]
3e60b778b0
fix(deps): update all non-major dependencies (#12389)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-03-21 07:43:25 +01:00
sun0day
7288a24aae
chore: upgrade rollup 3.20.0 (#12497) 2023-03-21 07:15:19 +01:00
sun0day
07aa155acc
test(resolve): add a test for resolving nested extension (#12473) 2023-03-18 11:40:27 +01:00
Wei
79a500726f
fix(worker): using data URLs for inline shared worker (#12014)
Co-authored-by: 翠 / green <green@sapphi.red>
2023-03-18 07:29:54 +00:00
sun0day
1543236f3a
test(optimizer): cover pre bundle css require (#12443) 2023-03-17 17:40:19 +08:00
sun0day
4b587b01e2
test(resolve): cover the codes that parse the fs path contained postfix (#12436) 2023-03-16 18:21:09 +01:00
sun0day
e23f690dbf
fix(optimizer): # symbol in deps id stripped by browser (#12415)
Co-authored-by: patak <matias.capeletto@gmail.com>
2023-03-16 00:29:50 +08:00
patak
96f36a9a5e
fix: html env replacement plugin position (#12404) 2023-03-15 07:21:08 +01:00
sun0day
fe1d61a75e
fix(resolve): rebase sub imports relative path (#12373) 2023-03-14 17:59:55 +01:00
翠 / green
a595b115ef
chore: fix test misc (#12392) 2023-03-13 09:14:31 +01:00
Wei
4433c30671
fix(playground): typecheck (#12339) 2023-03-08 21:03:37 +01:00
Bjorn Lu
90431f27f4
feat(css): add build.cssMinify (#12207) 2023-03-08 18:07:54 +01:00
renovate[bot]
b41336e450
chore(deps): update all non-major dependencies (#12299) 2023-03-07 15:44:18 +01:00
Bjorn Lu
4f2c49f886
feat(html): support env replacement (#12202) 2023-03-07 13:07:37 +00:00
Kyle Herock
108aadf728
feat(css): support resolving stylesheets from exports map (#7817)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-03-07 20:49:14 +08:00
François Risoud
5968becf59
feat(css): add preprocessor option to define stylus vars & funcs (#7227)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-03-06 17:58:14 +00:00
Wei
cc92da906d
feat: support ESM subpath imports (#7770) 2023-03-06 16:47:39 +01:00