@@ -184,8 +184,8 @@ Dart's compiler technology lets you run code in different ways:
184
184
an ahead-of-time (AOT) compiler for producing machine code.
185
185
186
186
* ** Web platform** : For apps targeting the web, Dart can compile for
187
- development or production purposes. Its web compiler translates Dart
188
- into JavaScript.
187
+ development or production purposes. Its web compilers translate Dart
188
+ into JavaScript or WebAssembly .
189
189
190
190
<img
191
191
src="/assets/img/Dart-platforms.svg"
@@ -221,26 +221,31 @@ More information:
221
221
* [ Write command-line apps] ( /tutorials/server/cmdline )
222
222
* [ Write HTTP servers] ( /tutorials/server/httpserver )
223
223
224
- #### Dart Web (JavaScript dev & prod) {:#web-platform}
224
+ #### Dart Web (JavaScript dev & prod and WebAssembly ) {:#web-platform}
225
225
226
226
Dart Web enables running Dart code on web platforms powered by
227
227
JavaScript. With Dart Web, you compile Dart code to JavaScript code, which in
228
228
turn runs in a browser—for example, [ V8] ( https://v8.dev/ ) inside
229
229
[ Chrome] ( https://www.google.com/chrome/ ) .
230
+ Alternatively, Dart code can be compiled to WebAssembly.
230
231
231
- Dart web contains two compilation modes:
232
+ Dart web contains three compilation modes:
232
233
233
- * An incremental development compiler enabling a fast developer cycle
234
- * An optimizing production compiler which compiles Dart code to fast,
235
- compact, deployable JavaScript. These efficiencies come from
236
- techniques such as dead-code elimination.
234
+ * An incremental JavaScript development compiler enabling a fast developer
235
+ cycle.
236
+ * An optimizing JavaScript production compiler which compiles Dart code to fast,
237
+ compact, deployable JavaScript. These efficiencies come from techniques such
238
+ as dead-code elimination.
239
+ * An optimizing WebAssembly (WasmGC) production compiler which compiles Dart
240
+ code to super-fast, deployable WebAssembly GC code.
237
241
238
242
More information:
239
243
240
244
* [ Build a web app with Dart] ( /web/get-started )
241
245
* [ ` dart compile js ` ] ( /tools/dart-compile#js )
242
246
* [ ` webdev ` tool] ( /tools/webdev )
243
247
* [ Web deployment tips] ( /web/deployment )
248
+ * [ WebAssembly compilation] ( /web/wasm )
244
249
245
250
#### The Dart runtime {:#runtime}
246
251
0 commit comments