mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

This adds support for adding the `--wasm` flag to `flutter run` and `flutter drive` * Emits errors if you attempt to use the skwasm renderer without the `--wasm` flag * Emits errors if you try to use `--wasm` when not using a web device * Uses the skwasm renderer by default if you pass `--wasm` and no `--web-renderer`
13 lines
369 B
JavaScript
13 lines
369 B
JavaScript
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
{{flutter_js}}
|
|
{{flutter_build_config}}
|
|
_flutter.loader.load({
|
|
config: {
|
|
// Use the local CanvasKit bundle instead of the CDN to reduce test flakiness.
|
|
canvasKitBaseUrl: "/canvaskit/",
|
|
},
|
|
});
|