From 00b650625154fb4d8d4f4aa9507fd72e17ac7cb9 Mon Sep 17 00:00:00 2001 From: Mike MacCana Date: Wed, 14 Dec 2022 13:18:08 +0000 Subject: [PATCH 1/6] docs: specify that 'worker' means 'web worker' (#11260) --- config/worker-options.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/worker-options.md b/config/worker-options.md index c506d249..daefcef7 100644 --- a/config/worker-options.md +++ b/config/worker-options.md @@ -1,5 +1,7 @@ # Worker Options +Options related to Web Workers. + ## worker.format - **Type:** `'es' | 'iife'` From 1dadbbe632d93f01ade39f68a9dba8847d9d0fa4 Mon Sep 17 00:00:00 2001 From: Guillaume Briday <8252238+guillaumebriday@users.noreply.github.com> Date: Sat, 17 Dec 2022 07:10:46 +0000 Subject: [PATCH 2/6] docs: update extensions generated in library mode (#11401) --- guide/build.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/build.md b/guide/build.md index 3ed66361..0068fd04 100644 --- a/guide/build.md +++ b/guide/build.md @@ -194,14 +194,14 @@ Or, if exposing multiple entry points: "type": "module", "files": ["dist"], "main": "./dist/my-lib.cjs", - "module": "./dist/my-lib.mjs", + "module": "./dist/my-lib.js", "exports": { ".": { - "import": "./dist/my-lib.mjs", + "import": "./dist/my-lib.js", "require": "./dist/my-lib.cjs" }, "./secondary": { - "import": "./dist/secondary.mjs", + "import": "./dist/secondary.js", "require": "./dist/secondary.cjs" } } From 6bb0b4e6cf9dafccbb5329e7ae8549585129a7fb Mon Sep 17 00:00:00 2001 From: Clay Date: Sat, 17 Dec 2022 02:57:57 -0800 Subject: [PATCH 3/6] docs: troubleshooting issues with self-signed SSL certs (#11126) Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- guide/troubleshooting.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/guide/troubleshooting.md b/guide/troubleshooting.md index 198c1ef4..3cecb191 100644 --- a/guide/troubleshooting.md +++ b/guide/troubleshooting.md @@ -51,6 +51,24 @@ If the above steps don't work, you can try adding `DefaultLimitNOFILE=65536` as Note that these settings persist but a **restart is required**. +### Network requests stop loading + +When using a self-signed SSL certificate, Chrome ignores all caching directives and reloads the content. Vite relies on these caching directives. + +To resolve the problem use a trusted SSL cert. + +See: [Cache problems](https://helpx.adobe.com/mt/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html), [Chrome issue](https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8) + +#### macOS + +You can install a trusted cert via the CLI with this command: + +``` +security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db your-cert.cer +``` + +Or, by importing it into the Keychain Access app and updating the trust of your cert to "Always Trust." + ### 431 Request Header Fields Too Large When the server / WebSocket server receives a large HTTP header, the request will be dropped and the following warning will be shown. @@ -83,6 +101,10 @@ If HMR is not handled by Vite or a plugin, a full reload will happen. Also if there is a dependency loop, a full reload will happen. To solve this, try removing the loop. +### High number of HMR updates in console + +This can be caused by a circular dependency. To solve this, try breaking the loop. + ## Build ### Built file does not work because of CORS error From 99774b2e643707a593f413e2f43381b30cabdf93 Mon Sep 17 00:00:00 2001 From: patak Date: Sat, 17 Dec 2022 23:23:11 +0100 Subject: [PATCH 4/6] chore: add dominikg to the Vite team page (#11407) --- _data/team.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_data/team.js b/_data/team.js index e53d5ed7..538757c9 100644 --- a/_data/team.js +++ b/_data/team.js @@ -114,6 +114,13 @@ export const core = [ desc: 'Passionate by tooling around TypeScript and React.', links: [{ icon: 'github', link: 'https://github.com/ArnaudBarre' }], }, + { + avatar: 'https://github.com/dominikg.png', + name: 'Dominik G.', + title: 'Resident CI Expert', + desc: 'Team Member of Vite and Svelte', + links: [{ icon: 'github', link: 'https://github.com/dominikg' }], + }, ] export const emeriti = [ From b487b176946a6940b8f77176b07b19eed975456c Mon Sep 17 00:00:00 2001 From: HaeJun Seo Date: Mon, 19 Dec 2022 14:12:06 +0900 Subject: [PATCH 5/6] docs: fix typo succeful (#11415) --- guide/api-hmr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/api-hmr.md b/guide/api-hmr.md index 1f23fdf8..ee66f73b 100644 --- a/guide/api-hmr.md +++ b/guide/api-hmr.md @@ -94,7 +94,7 @@ if (import.meta.hot) { ['./foo.js', './bar.js'], ([newFooModule, newBarModule]) => { // The callback receives an array where only the updated module is non null - // If the update was not succeful (syntax error for ex.), the array is empty + // If the update was not successful (syntax error for ex.), the array is empty }, ) } From 8f59040f559371b08feec5af4194a49901dbefbc Mon Sep 17 00:00:00 2001 From: ShenQingchuan Date: Wed, 28 Dec 2022 15:40:51 +0800 Subject: [PATCH 6/6] docs(cn): fix all conflicts --- guide/api-hmr.md | 8 +------- guide/troubleshooting.md | 26 +++++++++----------------- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/guide/api-hmr.md b/guide/api-hmr.md index 3be832e7..169893dd 100644 --- a/guide/api-hmr.md +++ b/guide/api-hmr.md @@ -93,15 +93,9 @@ if (import.meta.hot) { import.meta.hot.accept( ['./foo.js', './bar.js'], ([newFooModule, newBarModule]) => { -<<<<<<< HEAD - // 只有当更新模块非空时,回调函数接收一个数组 + // 只有当所更新的模块非空时,回调函数接收一个数组 // 如果更新不成功(例如语法错误),则该数组为空 } -======= - // The callback receives an array where only the updated module is non null - // If the update was not successful (syntax error for ex.), the array is empty - }, ->>>>>>> b487b176946a6940b8f77176b07b19eed975456c ) } ``` diff --git a/guide/troubleshooting.md b/guide/troubleshooting.md index 1244de0b..88bcd7b1 100644 --- a/guide/troubleshooting.md +++ b/guide/troubleshooting.md @@ -51,29 +51,25 @@ 请注意,这些配置会持久作用,但需要 **重新启动**。 -<<<<<<< HEAD -### 431 Request Header Fields Too Large {#431-request-header-fields-too-large} -======= -### Network requests stop loading +### 网络请求停止加载 {#network-requests-stop-loading} -When using a self-signed SSL certificate, Chrome ignores all caching directives and reloads the content. Vite relies on these caching directives. +使用自签名SSL证书时,Chrome 会忽略所有缓存指令并重新加载内容。而 Vite 依赖于这些缓存指令。 -To resolve the problem use a trusted SSL cert. +要解决此问题,请使用受信任的SSL证书。 -See: [Cache problems](https://helpx.adobe.com/mt/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html), [Chrome issue](https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8) +请查看:[缓存问题](https://helpx.adobe.com/mt/experience-manager/kb/cache-problems-on-chrome-with-SSL-certificate-errors.html) 和相关的 [Chrome issue](https://bugs.chromium.org/p/chromium/issues/detail?id=110649#c8) #### macOS -You can install a trusted cert via the CLI with this command: +您可以使用以下命令通过 CLI 安装受信任的证书: ``` security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db your-cert.cer ``` -Or, by importing it into the Keychain Access app and updating the trust of your cert to "Always Trust." +或者,通过将其导入 Keychain Access 应用程序并将您的证书的信任更新为“始终信任”。 -### 431 Request Header Fields Too Large ->>>>>>> b487b176946a6940b8f77176b07b19eed975456c +### 431 Request Header Fields Too Large {#431-request-header-fields-too-large} 当服务器或 WebSocket 服务收到一个较大的 HTTP 头,该请求可能会被遗落并且会显示下面这样的警告。 @@ -105,15 +101,11 @@ import './Foo.js' // 应该为 './foo.js' 同时如果有依赖环,也会发生完全重载。要解决这个问题,请先尝试解决依赖循环。 -<<<<<<< HEAD -## 构建 {#build} -======= -### High number of HMR updates in console +### 控制台中大量热更新 {#high-number-of-hmr-updates-in-console} This can be caused by a circular dependency. To solve this, try breaking the loop. -## Build ->>>>>>> b487b176946a6940b8f77176b07b19eed975456c +## 构建 {#build} ### 构建产物因为 CORS 错误无法工作 {#built-file-does-not-work-because-of-cors-error}