Unverified Commit 75f61903 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] disable web compilation (#116368)

parent 10c049da
...@@ -753,6 +753,9 @@ class ManifestAssetBundle implements AssetBundle { ...@@ -753,6 +753,9 @@ class ManifestAssetBundle implements AssetBundle {
} }
} }
// TODO(jonahwilliams): re-enable this feature once
// flutter web is using engine compiled canvaskit.
if (targetPlatform != TargetPlatform.web_javascript) {
for (final Uri shaderUri in flutterManifest.shaders) { for (final Uri shaderUri in flutterManifest.shaders) {
_parseAssetFromFile( _parseAssetFromFile(
packageConfig, packageConfig,
...@@ -766,6 +769,8 @@ class ManifestAssetBundle implements AssetBundle { ...@@ -766,6 +769,8 @@ class ManifestAssetBundle implements AssetBundle {
assetKind: AssetKind.shader, assetKind: AssetKind.shader,
); );
} }
}
// Add assets referenced in the fonts section of the manifest. // Add assets referenced in the fonts section of the manifest.
for (final Font font in flutterManifest.fonts) { for (final Font font in flutterManifest.fonts) {
for (final FontAsset fontAsset in font.fontAssets) { for (final FontAsset fontAsset in font.fontAssets) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment