Skip to content

Commit

Permalink
Merge pull request #800 from vitejs/sync-00eed324-1
Browse files Browse the repository at this point in the history
docs(en): merge docs-cn/sync-docs into docs-cn/dev @ 00eed32
  • Loading branch information
ShenQingchuan committed Jul 26, 2023
2 parents 9f83a65 + f2a97e0 commit c469c0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion guide/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ import MyWorker from './worker?worker'
const worker = new MyWorker()
```

Worker 脚本也可以使用 ESM `import` 语句来替代 `importScripts()` —— **注意**,在开发过程中,这依赖于[浏览器原生支持](https://caniuse.com/?search=module%20worker)(目前在 Firefox 中不支持),而在生产版本中,它已经被编译掉了
这个 worker 脚本也可以使用 ESM `import` 语句而不是 `importScripts()`**注意**:在开发时,这依赖于 [浏览器原生支持](https://caniuse.com/?search=module%20worker),但是在生产构建中,它会被编译掉

默认情况下,worker 脚本将在生产构建中编译成单独的 chunk。如果你想将 worker 内联为 base64 字符串,请添加 `inline` 查询参数:

Expand Down
4 changes: 4 additions & 0 deletions guide/static-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,7 @@ $ npx wrangler pages publish dist
## Flightcontrol

使用 [Flightcontrol](https://www.flightcontrol.dev/?ref=docs-vite) 部署静态站点,可以按照 [说明](https://www.flightcontrol.dev/docs/reference/examples/vite?ref=docs-vite) 进行操作。

## AWS Amplify 部署 {#aws-amplify-hoisting}

使用 [AWS Amplify 部署](https://aws.amazon.com/amplify/hosting/) 部署静态站点,可以按照 [说明](https://docs.amplify.aws/guides/hosting/vite/q/platform/js/) 进行操作。

0 comments on commit c469c0b

Please sign in to comment.