Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 75f6190

Browse files
[flutter_tools] disable web compilation (#116368)
1 parent 10c049d commit 75f6190

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

packages/flutter_tools/lib/src/asset.dart

+17-12
Original file line numberDiff line numberDiff line change
@@ -753,19 +753,24 @@ class ManifestAssetBundle implements AssetBundle {
753753
}
754754
}
755755

756-
for (final Uri shaderUri in flutterManifest.shaders) {
757-
_parseAssetFromFile(
758-
packageConfig,
759-
flutterManifest,
760-
assetBase,
761-
cache,
762-
result,
763-
shaderUri,
764-
packageName: packageName,
765-
attributedPackage: attributedPackage,
766-
assetKind: AssetKind.shader,
767-
);
756+
// TODO(jonahwilliams): re-enable this feature once
757+
// flutter web is using engine compiled canvaskit.
758+
if (targetPlatform != TargetPlatform.web_javascript) {
759+
for (final Uri shaderUri in flutterManifest.shaders) {
760+
_parseAssetFromFile(
761+
packageConfig,
762+
flutterManifest,
763+
assetBase,
764+
cache,
765+
result,
766+
shaderUri,
767+
packageName: packageName,
768+
attributedPackage: attributedPackage,
769+
assetKind: AssetKind.shader,
770+
);
771+
}
768772
}
773+
769774
// Add assets referenced in the fonts section of the manifest.
770775
for (final Font font in flutterManifest.fonts) {
771776
for (final FontAsset fontAsset in font.fontAssets) {

0 commit comments

Comments
 (0)