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

[flutter_tools] disable web compilation (#116368)

parent 10c049da
...@@ -753,19 +753,24 @@ class ManifestAssetBundle implements AssetBundle { ...@@ -753,19 +753,24 @@ class ManifestAssetBundle implements AssetBundle {
} }
} }
for (final Uri shaderUri in flutterManifest.shaders) { // TODO(jonahwilliams): re-enable this feature once
_parseAssetFromFile( // flutter web is using engine compiled canvaskit.
packageConfig, if (targetPlatform != TargetPlatform.web_javascript) {
flutterManifest, for (final Uri shaderUri in flutterManifest.shaders) {
assetBase, _parseAssetFromFile(
cache, packageConfig,
result, flutterManifest,
shaderUri, assetBase,
packageName: packageName, cache,
attributedPackage: attributedPackage, result,
assetKind: AssetKind.shader, shaderUri,
); packageName: packageName,
attributedPackage: attributedPackage,
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