File tree Expand file tree Collapse file tree 5 files changed +35
-4
lines changed Expand file tree Collapse file tree 5 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,13 @@ export const core = [
114114 desc : 'Passionate by tooling around TypeScript and React.' ,
115115 links : [ { icon : 'github' , link : 'https://github.com/ArnaudBarre' } ] ,
116116 } ,
117+ {
118+ avatar : 'https://github.com/dominikg.png' ,
119+ name : 'Dominik G.' ,
120+ title : 'Resident CI Expert' ,
121+ desc : 'Team Member of Vite and Svelte' ,
122+ links : [ { icon : 'github' , link : 'https://github.com/dominikg' } ] ,
123+ } ,
117124]
118125
119126export const emeriti = [
Original file line number Diff line number Diff line change 11# Worker 选项 {#worker-options}
22
3+ Options related to Web Workers.
4+
35## worker.format
46
57- ** 类型:** ` 'es' | 'iife' `
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ if (import.meta.hot) {
9393 import .meta.hot.accept(
9494 [' ./foo.js' , ' ./bar.js' ],
9595 ([newFooModule , newBarModule ]) => {
96- // 只有当更新模块非空时 ,回调函数接收一个数组
96+ // 只有当所更新的模块非空时 ,回调函数接收一个数组
9797 // 如果更新不成功(例如语法错误),则该数组为空
9898 }
9999 )
Original file line number Diff line number Diff line change @@ -192,14 +192,14 @@ dist/my-lib.umd.cjs 0.30 KiB / gzip: 0.16 KiB
192192 "type" : " module" ,
193193 "files" : [" dist" ],
194194 "main" : " ./dist/my-lib.cjs" ,
195- "module" : " ./dist/my-lib.mjs " ,
195+ "module" : " ./dist/my-lib.js " ,
196196 "exports" : {
197197 "." : {
198- "import" : " ./dist/my-lib.mjs " ,
198+ "import" : " ./dist/my-lib.js " ,
199199 "require" : " ./dist/my-lib.cjs"
200200 },
201201 "./secondary" : {
202- "import" : " ./dist/secondary.mjs " ,
202+ "import" : " ./dist/secondary.js " ,
203203 "require" : " ./dist/secondary.cjs"
204204 }
205205 }
Original file line number Diff line number Diff line change 5151
5252请注意,这些配置会持久作用,但需要 ** 重新启动** 。
5353
54+ ### 网络请求停止加载 {#network-requests-stop-loading}
55+
56+ 使用自签名SSL证书时,Chrome 会忽略所有缓存指令并重新加载内容。而 Vite 依赖于这些缓存指令。
57+
58+ 要解决此问题,请使用受信任的SSL证书。
59+
60+ 请查看:[ 缓存问题] ( 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 )
61+
62+ #### macOS
63+
64+ 您可以使用以下命令通过 CLI 安装受信任的证书:
65+
66+ ```
67+ security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db your-cert.cer
68+ ```
69+
70+ 或者,通过将其导入 Keychain Access 应用程序并将您的证书的信任更新为“始终信任”。
71+
5472### 431 Request Header Fields Too Large {#431 -request-header-fields-too-large}
5573
5674当服务器或 WebSocket 服务收到一个较大的 HTTP 头,该请求可能会被遗落并且会显示下面这样的警告。
@@ -83,6 +101,10 @@ import './Foo.js' // 应该为 './foo.js'
83101
84102同时如果有依赖环,也会发生完全重载。要解决这个问题,请先尝试解决依赖循环。
85103
104+ ### 控制台中大量热更新 {#high-number-of-hmr-updates-in-console}
105+
106+ This can be caused by a circular dependency. To solve this, try breaking the loop.
107+
86108## 构建 {#build}
87109
88110### 构建产物因为 CORS 错误无法工作 {#built-file-does-not-work-because-of-cors-error}
You can’t perform that action at this time.
0 commit comments