Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plugin-legacy): add protocol to support file protocol #1189 #2574

Closed
wants to merge 1,288 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1288 commits
Select commit Hold shift + click to select a range
1a498f7
docs: fix the wasm example in "migration from v2" (#8853)
haoqunjiang Jun 29, 2022
ef749ed
fix(worker): dont throw on `import.meta.url` in ssr (#8846)
bluwy Jun 29, 2022
cd8d63b
fix: avoid optimizing non-optimizable external deps (#8860)
bholmesdev Jun 29, 2022
d49856c
fix: optimize deps on dev SSR, builtin imports in node (#8854)
patak-dev Jun 29, 2022
cb0c76a
fix(plugin-vue): handle TS decorators in rewriteDefault fallback
yyx990803 Jun 30, 2022
026eb18
test: use ES syntax in vite.config.noexternal.js (#8857)
stefanvanherwijnen Jun 30, 2022
4eb2348
chore: update deprecation warnings for improved migration DX (#8866)
brillout Jun 30, 2022
3af6a1b
fix: prevent crash when the pad amount is negative (#8747)
Haegin Jun 30, 2022
314c09c
fix: ignore Playwright test results directory (#8778)
benmccann Jun 30, 2022
09742e2
fix(plugin-react): pass correct context to runPluginOverrides (#8809)
cyco130 Jun 30, 2022
4816527
test: add #8245 test case
sapphi-red Jul 1, 2022
24a9469
test: add #8461 test case
sapphi-red Jul 1, 2022
1748fe9
test: fix flaky glob test (#8875)
sapphi-red Jul 1, 2022
cad27ee
docs: simplify Snowpack comparison (#8871)
patak-dev Jul 1, 2022
8970f16
docs: fix typo (#8881)
mattcroat Jul 1, 2022
b6d655a
feat: ssrBuild flag in config env (#8863)
patak-dev Jul 3, 2022
7d810a9
fix: ensure define overrides import.meta in build (#8892)
bluwy Jul 3, 2022
424033b
docs: typo in api-plugin.md (#8893)
sepehr-safari Jul 3, 2022
c509659
docs: typo in migration.md (#8895)
sepehr-safari Jul 3, 2022
a0da2f0
fix: reverts #8278
sapphi-red Jul 3, 2022
a67b0d3
test: skip failing test
sapphi-red Jul 3, 2022
ae34565
fix(hmr): set isSelfAccepting unless it is delayed (#8898)
sapphi-red Jul 3, 2022
f9b5c14
refactor: remove ?used inject in glob plugin (#8900)
sapphi-red Jul 3, 2022
129c7c6
chore(deps): update dependency connect-history-api-fallback to v2 (#8…
renovate[bot] Jul 4, 2022
4a24c17
chore(deps): update all non-major dependencies (#8905)
renovate[bot] Jul 4, 2022
d412860
release: v3.0.0-beta.6
patak-dev Jul 4, 2022
188f188
feat: improved cold start using deps scanner (#8869)
patak-dev Jul 4, 2022
722f514
fix: ssrBuild is optional, avoid breaking VitePress (#8912)
patak-dev Jul 4, 2022
f280dd9
feat: ssr.optimizeDeps (#8917)
patak-dev Jul 5, 2022
9d28ffd
docs(ssr): specify the use of express.Router (#8915)
andoniabedul Jul 5, 2022
0e6b82e
fix: template-react-ts warning when importing path in vite.config.ts …
andyjxli Jul 5, 2022
234bb53
docs: fix grammar in why.md (#8940)
sepehr-safari Jul 5, 2022
ec9ebd3
docs: fix `build.chunkSizeWarningLimit` heading level (#8938)
sapphi-red Jul 5, 2022
2390422
feat: support import assertions (#8937)
bluwy Jul 5, 2022
df5688c
docs: add Cloudflare Pages to deploy options (#8927)
Ekwuno Jul 5, 2022
339d9e3
feat: avoid scanner during build and only optimize CJS in SSR (#8932)
patak-dev Jul 6, 2022
6e0dd3a
fix(css): always use css module content (#8936)
sapphi-red Jul 6, 2022
0d2c257
release: v3.0.0-beta.7
patak-dev Jul 6, 2022
7ea4d95
release: plugin-legacy@2.0.0-beta.1
patak-dev Jul 6, 2022
6becf22
release: plugin-react@2.0.0-beta.1
patak-dev Jul 6, 2022
a7ac1ec
release: plugin-vue@3.0.0-beta.1
patak-dev Jul 6, 2022
bef378d
docs: update Cloudflare pages option (updates: #8927) (#8949)
Ekwuno Jul 6, 2022
2185f72
fix: cjs interop export names local clash, fix #8950 (#8953)
patak-dev Jul 6, 2022
57c6c15
fix: handle context resolve options (#8966)
bluwy Jul 7, 2022
752af6c
fix(scan): detect import .ts as .js (#8969)
bluwy Jul 7, 2022
c956cf7
chore: update readme (#8971)
Lantianyou Jul 7, 2022
5c6cf5a
refactor!: move basic ssl setup to external plugin, fix #8532 (#8961)
patak-dev Jul 7, 2022
b835699
fix: re-encode url to prevent fs.allow bypass (fixes #8498) (#8979)
sapphi-red Jul 8, 2022
f8c8cf2
refactor: opt-in optimizeDeps during build and SSR (#8965)
patak-dev Jul 8, 2022
33d6177
release: v3.0.0-beta.8
patak-dev Jul 8, 2022
07aef1b
docs: cleanup changes (#8989)
bluwy Jul 8, 2022
cf23963
chore: use vite-env.d.ts convention (#8988)
bluwy Jul 8, 2022
e369880
fix: respect explicitily external/noExternal config (#8983)
patak-dev Jul 8, 2022
5a7d04d
release: v3.0.0-beta.9
patak-dev Jul 8, 2022
2a9bc6d
chore: v3.0.0-beta.9 release notes (#8996)
patak-dev Jul 8, 2022
05b17df
docs: update api-javascript (#8999)
bluwy Jul 9, 2022
da7c3ae
feat: show ws connection error (#9007)
sapphi-red Jul 9, 2022
bdae7fa
fix(react): sourcemap incorrect warning and classic runtime sourcemap…
sapphi-red Jul 9, 2022
ce790c4
docs: Improve wording of 'Why Vite' (#9005)
biril Jul 9, 2022
aff4544
fix(ssr): sourcemap content (fixes #8657) (#8997)
sapphi-red Jul 10, 2022
70af44a
fix(vue): handle undefined on import.meta.hot.accept (fixes #8625) (#…
sapphi-red Jul 10, 2022
9363872
chore: fix test optimizeDeps at build time flag (#9004)
patak-dev Jul 10, 2022
53799e1
chore: scanner after server listen (#9020)
patak-dev Jul 10, 2022
e2a6bf4
chore: ignore ts warning (#9015)
caoxiemeihao Jul 11, 2022
6342140
chore(deps): update all non-major dependencies (#9022)
renovate[bot] Jul 11, 2022
519f7de
docs: add team page (#8720)
kiaking Jul 11, 2022
26bcdc3
feat: expose server resolved urls (#8986)
bluwy Jul 11, 2022
e685de3
release: v3.0.0-beta.10
patak-dev Jul 11, 2022
e372693
fix: reload on restart with middleware mode (fixes #9038) (#9040)
sapphi-red Jul 12, 2022
45b8b53
fix: remove ws is already closed error (#9041)
sapphi-red Jul 12, 2022
8c52867
docs: update ssr (#8987)
bluwy Jul 12, 2022
f020066
chore: include 2.9.13-2.9.14 changelog in main (#9053)
sapphi-red Jul 12, 2022
7662998
fix: prevent production node_env in serve (#9066)
bluwy Jul 13, 2022
5340005
docs: fix link a11y (#9055)
bluwy Jul 13, 2022
6391791
chore: v3 announcement blog post (#9037)
patak-dev Jul 13, 2022
e5ddfa8
docs: update ssr externals (#9048)
patak-dev Jul 13, 2022
d5d41a6
docs: improve server.host desc in migration guide (#9030)
sapphi-red Jul 13, 2022
631e26d
docs: version toggle label (#9069)
sapphi-red Jul 13, 2022
8480b35
docs: upgrades to vite core (#9070)
patak-dev Jul 13, 2022
b8c625c
release: v3.0.0
patak-dev Jul 13, 2022
427ba26
chore: 3.0 release notes and bump peer deps (#9072)
patak-dev Jul 13, 2022
549a890
release: plugin-vue@3.0.0
patak-dev Jul 13, 2022
fcb6a61
release: plugin-vue-jsx@2.0.0
patak-dev Jul 13, 2022
57df81c
release: plugin-react@2.0.0
patak-dev Jul 13, 2022
592d879
release: plugin-legacy@2.0.0
patak-dev Jul 13, 2022
880f560
fix(create-vite): remove import from public (#9074)
bluwy Jul 13, 2022
45b3f8f
chore: fix create-vite release script (#9075)
patak-dev Jul 13, 2022
acaf9e0
chore(create-vite): upgrade vite-plugin-svelte (#9076)
bluwy Jul 13, 2022
7065005
release: create-vite@3.0.0
patak-dev Jul 13, 2022
24f4f62
docs: add cover image to v3 announcement post (#9077)
patak-dev Jul 13, 2022
9eafb0e
docs: fix broken link in v3 blog post (#9085)
benmccann Jul 13, 2022
abbb5cc
docs: clarify sentence in blog post (#9083)
benmccann Jul 13, 2022
e8e1e62
docs: fix tree-shaking typo (#9080)
davidbielik Jul 13, 2022
4fbf9a8
docs: update default for optimizeDeps.disabled (#9078)
IanVS Jul 13, 2022
0ef8303
docs: fix library mode example import (#9084)
iamandrewluca Jul 13, 2022
cda5442
docs: tweak ogp tags (#9079)
sapphi-red Jul 13, 2022
61fa3ec
docs: mention overview of vite issues (#9101)
bluwy Jul 14, 2022
ec030fd
chore: remove note about v3 (#9090)
sapphi-red Jul 14, 2022
8e0308b
docs: add `appId` in vitepress config (#9099)
ydcjeff Jul 14, 2022
60fa6ba
docs: update library mode info (#9102)
bluwy Jul 14, 2022
b393451
fix: resolve drive relative path (#9097)
sapphi-red Jul 14, 2022
d12d469
fix: check server after tsconfig reload (#9106)
bluwy Jul 14, 2022
c2426d1
fix: server.proxy ws error causes crash (#9123)
sapphi-red Jul 14, 2022
a2b3131
refactor: always load config with esbuild bundled code (#9121)
bluwy Jul 14, 2022
555deea
docs: note library mode process.env.* replacement (#9130)
bluwy Jul 15, 2022
b7b3e65
refactor(vue): limit passable compilerOptions (#8994)
sapphi-red Jul 15, 2022
ebf682e
fix: use correct require extension to load config (#9118)
bluwy Jul 15, 2022
ec91f98
fix(vue): remove ssr.external config (#9128)
sapphi-red Jul 15, 2022
2826303
fix: mention that Node.js 13/15 support is dropped (fixes #9113) (#9116)
sapphi-red Jul 15, 2022
57a7936
fix(esbuild): always support dynamic import and import meta (#9105)
bluwy Jul 15, 2022
a52b45e
fix: avoid errors when loading the overlay code in workers (#9064)
lgarron Jul 15, 2022
5a8a3ab
fix: externalize workspace relative import when bundle config (#9140)
bluwy Jul 15, 2022
5ea70b3
fix: respect .mjs .cjs extension in all modes (#9141)
manucorporat Jul 15, 2022
5844d8e
fix: ssr.external/noExternal should apply to packageName (#9146)
patak-dev Jul 15, 2022
1e078ad
feat: allow declaring dirname (#9154)
sapphi-red Jul 16, 2022
344642a
docs: fix broken link to envPrefix config option (#9161)
petermekhaeil Jul 16, 2022
cc980b0
docs: __dirname is not available in ES modules (#9151)
lili21 Jul 17, 2022
e6f3b02
fix: disable keepNames in `vite:esbuild` (fixes #9164) (#9166)
sapphi-red Jul 17, 2022
d2f02a8
fix: return 500 on proxy error only if possible (fixes #9172) (#9175)
sapphi-red Jul 17, 2022
33b5b0d
chore: remove unused `favicon.svg` (#9181)
caoxiemeihao Jul 18, 2022
8db00d8
release: v3.0.1
patak-dev Jul 18, 2022
9d12a6d
release: plugin-vue@3.0.1
patak-dev Jul 18, 2022
2139ac1
chore(deps): update dependency @types/estree to v1 (#9177)
renovate[bot] Jul 18, 2022
28cffc9
fix: fs serve only edit pathname (fixes #9148) (#9173)
sapphi-red Jul 18, 2022
31d3b70
fix(deps): update all non-major dependencies (#9176)
renovate[bot] Jul 18, 2022
d66ffd0
fix: prevent null pathname error (#9188)
sapphi-red Jul 18, 2022
c5f2dc7
fix(ssr): strip NULL_BYTE_PLACEHOLDER before import (#9124)
sapphi-red Jul 18, 2022
99b0e67
fix(dev): build.ssr is set during dev, fix #9134 (#9187)
patak-dev Jul 18, 2022
b2f6bdc
fix: return 500 on proxy error only if possible (fixes #9172) (#9193)
sapphi-red Jul 18, 2022
af6088f
release: v3.0.2
patak-dev Jul 18, 2022
88baa53
feat(css): use esbuild.log* options when minifying (#9210)
sapphi-red Jul 19, 2022
3e510ab
feat: worker config call config hook (#9212)
poyoho Jul 19, 2022
5866cfb
fix: ssrLoadModule executes code in non-strict mode, fixes #9197 (#9199)
patak-dev Jul 19, 2022
ae5639c
docs: update CONTRIBUTING.md (#9127)
tony19 Jul 19, 2022
dfaeb2b
fix: make `resolveConfig()` concurrent safe (#9224)
brillout Jul 19, 2022
c98ed4d
docs: update README.md (#9228)
circle-gon Jul 20, 2022
29db3ea
docs: fix server options link (#9242)
xlianghang Jul 20, 2022
bff3abb
fix(create-vite): update vanilla-ts brand color (#9254)
bluwy Jul 20, 2022
aa0b921
docs: add vite client script for backend integration (#9258)
bluwy Jul 20, 2022
c616077
fix: scanner and optimizer should skip wasm (#9257)
sapphi-red Jul 20, 2022
fa97bf3
docs: HMR abbreviation (#9259)
4ibis Jul 21, 2022
6adb906
docs: convert png diagrams to svg (#9208)
tony19 Jul 21, 2022
bbc8318
fix: don't modify config (#9262)
poyoho Jul 21, 2022
0580215
fix(glob): handle glob prop access (#9281)
bluwy Jul 21, 2022
881050d
docs(config): clarify config esm syntax (#9157)
SteveALee Jul 21, 2022
0b083ca
fix(scan): handle .ts import as .js alias (#9282)
bluwy Jul 21, 2022
95c85ab
docs: show deployed version (#9263)
sapphi-red Jul 22, 2022
6098457
docs: fix deploy type var (#9290)
sapphi-red Jul 22, 2022
b82ddfb
fix: client type error (#9289)
poyoho Jul 22, 2022
acc4406
docs: fix deploy type var again (#9293)
sapphi-red Jul 22, 2022
d420f01
fix: entries in ssr.external (#9286)
patak-dev Jul 22, 2022
0358b04
fix: worker relative base should use import.meta.url (#9204)
patak-dev Jul 22, 2022
0602017
feat: supports cts and mts files (#9268)
sxzz Jul 22, 2022
ea27701
fix(ssr): no external symlink package (#9296)
bluwy Jul 22, 2022
ed02861
chore: fix code typos (#9033)
dev-itsheng Jul 22, 2022
00e6af3
docs: rephrase version pinning
antfu Jul 22, 2022
796eef4
docs: link to viteconf (#9307)
patak-dev Jul 23, 2022
c417364
docs: fix `@rollup/plugin-commonjs` name (#9313)
bluwy Jul 23, 2022
2415193
fix: support vite client in safari 13 (#9315)
bluwy Jul 23, 2022
b82ee5d
docs: update browser baseline features (#9316)
bluwy Jul 23, 2022
e66cf69
fix: support multiline dynamic imports (#9314)
bluwy Jul 23, 2022
ffb2ba3
chore: adjust comments/typos (#9325)
chrisbbreuer Jul 23, 2022
8cabdd7
fix: build command fails in Windows (#9329)
userquin Jul 24, 2022
ccb3449
docs: fix highlight lines (#9336)
sapphi-red Jul 24, 2022
c33e365
fix: externalize explicitly configured linked packages (#9346)
patak-dev Jul 25, 2022
b2a4931
docs: `resolve.alias` for SSR externalized deps (#9337)
sapphi-red Jul 25, 2022
4215d46
release: v3.0.3
patak-dev Jul 25, 2022
13e6450
fix: normalise css paths in manifest on windows (fixes #9295) (#9353)
timacdonald Jul 25, 2022
2fcb027
chore(deps): update all non-major dependencies (#9347)
renovate[bot] Jul 25, 2022
e6c8965
fix: support stylesheets with link tag and media/disable prop (#6751)
pd4d10 Jul 25, 2022
183c6fb
fix(glob): support static template literals (#9352)
Dunqing Jul 25, 2022
b26b84b
docs: update algolia appId and key
yyx990803 Jul 26, 2022
8469bf0
docs: update broken link for import.meta (#9373)
rs3d Jul 26, 2022
8c62d31
docs: mention create-vite-extra for repro (#9380)
bluwy Jul 26, 2022
b7424b5
test: refactor some regexp, remove `{1}` (#9388)
dev-itsheng Jul 27, 2022
c78e409
docs: add overflow to Vite CLI code block (#9390)
Evavic44 Jul 27, 2022
122c6e7
fix: url constructor import asset no as url (#9399)
poyoho Jul 28, 2022
cd69358
fix: inline dynamic imports for ssr-webworker (fixes #9385) (#9401)
sapphi-red Jul 28, 2022
c918139
docs: add troubleshooting page (#9379)
sapphi-red Jul 29, 2022
156a3a4
fix(glob): server perf when globbing huge dirs (#9425)
tony19 Jul 29, 2022
e60368f
fix(ssr): allow virtual paths on node modules (#9405)
bluwy Jul 29, 2022
a2b24ee
fix: __VITE_PUBLIC_ASSET__hash__ in HTML (#9247)
nvh95 Jul 29, 2022
1c1cf43
release: v3.0.4
patak-dev Jul 29, 2022
364aae1
feat(ssr): debug failed node resolve (#9432)
bluwy Jul 29, 2022
46264ff
docs: ESM is always strict mode (#9454)
sapphi-red Jul 30, 2022
4032cef
docs: update team description
yyx990803 Jul 31, 2022
ba23711
docs: test netlify ignore using shell script
yyx990803 Jul 31, 2022
5169c51
docs: fix incomplete comment (#9466)
kidonng Jul 31, 2022
0309a61
chore: fix docs-check.sh lint (#9467)
bluwy Jul 31, 2022
9c58465
docs: give docs-check.sh execution permission
yyx990803 Aug 1, 2022
d764aa0
docs: echo info in ignore script
yyx990803 Aug 1, 2022
77e258f
chore(deps): update dependency @types/mime to v3 (#9479)
renovate[bot] Aug 1, 2022
c5e7895
fix: ignore tsconfig target when bundling config (#9457)
sapphi-red Aug 1, 2022
22084a6
fix(config): use file url for import path (fixes #9471) (#9473)
sapphi-red Aug 1, 2022
f4addcf
chore: tidy up eslint config (#9468)
sapphi-red Aug 1, 2022
cecc366
chore: remove unused deps (#9480)
sapphi-red Aug 1, 2022
c530d16
chore(deps): update all non-major dependencies (#9478)
renovate[bot] Aug 1, 2022
937cecc
fix: update dep types (fixes #9475) (#9489)
sapphi-red Aug 2, 2022
1983cf4
docs: override `vite/client` type (#9488)
sapphi-red Aug 2, 2022
9e9cd23
chore: node prefix lint (#9514)
sapphi-red Aug 3, 2022
145801e
docs(env): update copy issues (#9546)
oberocks Aug 5, 2022
89dd31c
docs(preview): replace dev server references (#9540)
mattrunyon Aug 5, 2022
a206f16
docs: set browser meta theme-color (#9556)
tony19 Aug 6, 2022
905b8eb
chore: init imports var before use (#9569)
poyoho Aug 7, 2022
c1fa219
fix: log worker plugins in debug mode (#9553)
hemengke1997 Aug 7, 2022
d35a1e2
fix(config): try catch unlink after load (#9577)
bluwy Aug 8, 2022
65cf7fb
docs: miscellaneous fixes (#9560)
sapphi-red Aug 8, 2022
1f11a70
fix: tree-shake modulepreload polyfill (#9531)
caoxiemeihao Aug 8, 2022
a6b12f8
docs: add git option for netlify deployment (#9526)
asrvd Aug 8, 2022
dfec6ca
fix(ssr): use appendRight for import (#9554)
bluwy Aug 8, 2022
27a20a5
docs: add Render deployment instructions (#9517)
metonym Aug 8, 2022
2e309d6
fix: allow tree-shake glob eager css in js (#9547)
sapphi-red Aug 8, 2022
4e9bdd4
test: mix tests refactoring (#9516)
sapphi-red Aug 8, 2022
2042b91
refactor(resolve): remove commonjs plugin handling (#9460)
sagargurtu Aug 9, 2022
8071325
fix(deps): update all non-major dependencies (#9575)
renovate[bot] Aug 9, 2022
6ad6734
docs: fix renderBuiltUrl example (#9558)
caoxiemeihao Aug 9, 2022
8bae103
fix(build): normalized output log (#9594)
xieyhn Aug 9, 2022
ff89df5
fix(ssr): check root import extension for external (#9494)
bluwy Aug 9, 2022
10757b8
release: v3.0.5
patak-dev Aug 9, 2022
6d95225
fix: avoid using `import.meta.url` for relative assets if output is n…
sapphi-red Aug 9, 2022
9d0b18b
fix: legacy no emit worker (#9500)
poyoho Aug 10, 2022
ee7f78f
fix(ssr): rename objectPattern dynamic key (fixes #9585) (#9609)
sapphi-red Aug 10, 2022
e45d95f
fix: json HMR (fixes #9521) (#9610)
sapphi-red Aug 10, 2022
4e6a77f
fix(optimizer): ignore EACCES errors while scanner (fixes #8916) (#9509)
sapphi-red Aug 10, 2022
8a5b575
fix(plugin-react): wrong substitution causes `React is not defined` (…
Dunqing Aug 10, 2022
c868e64
fix: use browser field if it is not likely UMD or CJS (fixes #9445) (…
sapphi-red Aug 10, 2022
e8b61bb
feat: show warning on 431 response (#9324)
sapphi-red Aug 10, 2022
5a18284
fix: don't count class declarations as react fast refresh boundry (fi…
DouglasDev Aug 10, 2022
ac16abd
fix(legacy): skip esbuild transform for systemjs (#9635)
bluwy Aug 11, 2022
fcf4d98
chore: narrow down rollup version (#9637)
patak-dev Aug 11, 2022
3455c17
release: v3.0.6
patak-dev Aug 11, 2022
9a0c38c
release: plugin-vue@3.0.2
patak-dev Aug 11, 2022
156790f
release: plugin-react@2.0.1
patak-dev Aug 11, 2022
848bb21
release: plugin-legacy@2.0.1
patak-dev Aug 11, 2022
301442b
release: create-vite@3.0.1
patak-dev Aug 11, 2022
b1bbc5b
refactor(legacy): remove code for Vite 2 (#9640)
sapphi-red Aug 11, 2022
1cf5c78
chore: remove vitest global options (#9620)
fireairforce Aug 12, 2022
73ad707
fix(config): don't use file url for external files with cjs output (#…
ArnaudBarre Aug 12, 2022
7121ee0
chore: fix typo in error message (#9645)
zokioki Aug 12, 2022
e384e31
release: v3.0.7
patak-dev Aug 12, 2022
fd2ee52
release: plugin-vue@3.0.3
patak-dev Aug 12, 2022
c261fe6
release: create-vite@3.0.2
patak-dev Aug 12, 2022
85e387a
fix: use browser field if likely esm (fixes #9652) (#9653)
sapphi-red Aug 12, 2022
f4b4405
fix: allow ping to http from https website (#9561)
SamuelAlev Aug 13, 2022
afbb87d
docs: update WSL2 watch limitation explanation (#8939)
sapphi-red Aug 13, 2022
07fe65e
feat: skip `.git` when emptying dir (#9659)
btea Aug 13, 2022
1478a2f
fix(ssr-manifest): filter path undefined when dynamic import (#9655)
jambonn Aug 15, 2022
d175038
chore: publish under previous tag if not latest (#9658)
patak-dev Aug 15, 2022
d30f881
chore: fix typo (#9684)
sxzz Aug 15, 2022
c6edd55
feat(plugin-legacy): rebase branch
ariesjia Aug 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
playground-temp
temp

194 changes: 194 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
// @ts-check
const { builtinModules } = require('node:module')
const { defineConfig } = require('eslint-define-config')

module.exports = defineConfig({
root: true,
extends: [
'eslint:recommended',
'plugin:node/recommended',
'plugin:@typescript-eslint/recommended'
],
plugins: ['import'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 2021
},
rules: {
eqeqeq: ['warn', 'always', { null: 'never' }],
'no-debugger': ['error'],
'no-empty': ['warn', { allowEmptyCatch: true }],
'no-process-exit': 'off',
'no-useless-escape': 'off',
'prefer-const': [
'warn',
{
destructuring: 'all'
}
],

'node/no-missing-import': [
'error',
{
allowModules: ['types', 'estree', 'less', 'sass', 'stylus'],
tryExtensions: ['.ts', '.js', '.jsx', '.tsx', '.d.ts']
}
],
'node/no-missing-require': [
'error',
{
// for try-catching yarn pnp
allowModules: ['pnpapi', 'vite'],
tryExtensions: ['.ts', '.js', '.jsx', '.tsx', '.d.ts']
}
],
'node/no-extraneous-import': [
'error',
{
allowModules: ['vite', 'less', 'sass', 'vitest']
}
],
'node/no-extraneous-require': [
'error',
{
allowModules: ['vite']
}
],
'node/no-deprecated-api': 'off',
'node/no-unpublished-import': 'off',
'node/no-unpublished-require': 'off',
'node/no-unsupported-features/es-syntax': 'off',

'@typescript-eslint/ban-ts-comment': 'off', // TODO: we should turn this on in a new PR
'@typescript-eslint/ban-types': 'off', // TODO: we should turn this on in a new PR
'@typescript-eslint/explicit-module-boundary-types': [
'error',
{ allowArgumentsExplicitlyTypedAsAny: true }
],
'@typescript-eslint/no-empty-function': [
'error',
{ allow: ['arrowFunctions'] }
],
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off', // maybe we should turn this on in a new PR
'@typescript-eslint/no-extra-semi': 'off', // conflicts with prettier
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off', // maybe we should turn this on in a new PR
'@typescript-eslint/no-unused-vars': 'off', // maybe we should turn this on in a new PR
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/consistent-type-imports': [
'error',
{ prefer: 'type-imports' }
],

'import/no-nodejs-modules': [
'error',
{ allow: builtinModules.map((mod) => `node:${mod}`) }
],
'import/no-duplicates': 'error',
'import/order': 'error',
'sort-imports': [
'error',
{
ignoreCase: false,
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
allowSeparatedGroups: false
}
]
},
overrides: [
{
files: ['packages/**'],
excludedFiles: '**/__tests__/**',
rules: {
'no-restricted-globals': ['error', 'require', '__dirname', '__filename']
}
},
{
files: 'packages/vite/**/*.*',
rules: {
'node/no-restricted-require': [
'error',
Object.keys(
require('./packages/vite/package.json').devDependencies
).map((d) => ({
name: d,
message:
`devDependencies can only be imported using ESM syntax so ` +
`that they are included in the rollup bundle. If you are trying to ` +
`lazy load a dependency, use (await import('dependency')).default instead.`
}))
]
}
},
{
files: ['packages/vite/src/node/**'],
rules: {
'no-console': ['error']
}
},
{
files: ['packages/vite/types/**', '*.spec.ts'],
rules: {
'node/no-extraneous-import': 'off'
}
},
{
files: ['packages/create-vite/template-*/**', '**/build.config.ts'],
rules: {
'no-undef': 'off',
'node/no-missing-import': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
},
{
files: ['playground/**'],
rules: {
'node/no-extraneous-import': 'off',
'node/no-extraneous-require': 'off',
'node/no-missing-import': 'off',
'node/no-missing-require': 'off',
// engine field doesn't exist in playgrounds
'node/no-unsupported-features/es-builtins': [
'error',
{
version: '^14.18.0 || >=16.0.0'
}
],
'node/no-unsupported-features/node-builtins': [
'error',
{
version: '^14.18.0 || >=16.0.0'
}
],
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
},
{
files: ['playground/**'],
excludedFiles: '**/__tests__/**',
rules: {
'no-undef': 'off',
'no-empty': 'off',
'no-constant-condition': 'off',
'@typescript-eslint/no-empty-function': 'off'
}
},
{
files: ['*.js'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
},
{
files: ['*.d.ts'],
rules: {
'@typescript-eslint/triple-slash-reference': 'off'
}
}
],
reportUnusedDisableDirectives: true
})
133 changes: 0 additions & 133 deletions .eslintrc.js

This file was deleted.

23 changes: 16 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ body:
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
placeholder: Bug description
placeholder: I am doing ... What I expect is ... What actually happening is ...
validations:
required: true
- type: textarea
- type: input
id: reproduction
attributes:
label: Reproduction
description: Please provide a link to a repo that can reproduce the problem you ran into. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "need reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
placeholder: Reproduction
description: Please provide a link via [vite.new](https://vite.new/) or a link to a repo that can reproduce the problem you ran into. `npm create vite@latest` and `npm create vite-extra@latest` (for SSR or library repros) can be used as a starter template. A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is required ([Why?](https://antfu.me/posts/why-reproductions-are-required)). If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "need reproduction" label. If no reproduction is provided after 3 days, it will be auto-closed.
placeholder: Reproduction URL and steps
validations:
required: true
- type: textarea
Expand Down Expand Up @@ -50,8 +50,17 @@ body:
Optional if provided reproduction. Please try not to insert an image but copy paste the log text.

1. Run `vite` or `vite build` with the `--debug` flag.
2. Provide the error log here.
render: shell
2. Provide the error log here in the format below.

````
<details>
<summary>Click to expand!</summary>

```shell
// paste the log text here
```
</details>
````
- type: checkboxes
id: checkboxes
attributes:
Expand All @@ -66,7 +75,7 @@ body:
required: true
- label: Check that there isn't [already an issue](https://github.com/vitejs/vite/issues) that reports the same bug to avoid creating a duplicate.
required: true
- label: Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- label: Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to [vuejs/core](https://github.com/vuejs/core) instead.
required: true
- label: Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
required: true
Expand Down
5 changes: 3 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ body:
- type: textarea
id: feature-description
attributes:
label: Clear and concise description of the problem
description: "As a developer using Vite I want [goal / wish] so that [benefit]. If you intend to submit a PR for this issue, tell us in the description. Thanks!"
label: Description
description: "Clear and concise description of the problem. Please make the reason and usecases as detailed as possible. If you intend to submit a PR for this issue, tell us in the description. Thanks!"
placeholder: As a developer using Vite I want [goal / wish] so that [benefit].
validations:
required: true
- type: textarea
Expand Down
Binary file added .github/issue-workflow-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading