Skip to content

Commit

Permalink
docs: remove note about firefox not supporting ESM imports in Web Wor…
Browse files Browse the repository at this point in the history
…kers (#1044)
  • Loading branch information
MH4GF authored Jul 30, 2023
1 parent ad9513e commit 02f256b
Showing 1 changed file with 1 addition 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()
```

ワーカスクリプトは、`importScripts()` の代わりに ESM`import` ステートメントを使用することもできます。**注意**: 開発中は[ブラウザのネイティブサポート](https://caniuse.com/?search=module%20worker)(現在 Firefox ではサポートされていません)に依存しますが、プロダクションビルドではコンパイルされます。
ワーカスクリプトは、`importScripts()` の代わりに ESM`import` ステートメントを使用することもできます。**注意**: 開発中は[ブラウザのネイティブサポート](https://caniuse.com/?search=module%20worker)に依存しますが、プロダクションビルドではコンパイルされます。

デフォルトでは、ワーカスクリプトは本番ビルドで個別のチャンクとして出力されます。ワーカを base64 文字列としてインライン化する場合は、`inline` クエリを追加します:

Expand Down

0 comments on commit 02f256b

Please sign in to comment.