Skip to content

[flutter-tools] [web] Service worker doesn't add the canvaskit.js and canvaskit.wasm files into the cache resource #53639

@nateshmbhat

Description

@nateshmbhat

@jonahwilliams has merged a PR here #48344 that generates the service worker js file.

when we build flutter app with the canvas kit web assembly flag :

flutter build web --dart-define=FLUTTER_WEB_USE_SKIA=true

The service worker file generated doesn't contain the canvaskit.js or canvaskit.wasm files in the RESOUCRSES.

Please make sure that these files are also cached as part of other resources of the service worker.
canvaskit.js and canvaskit.wasm come from external urls :
https://unpkg.com/[email protected]/bin/canvaskit.wasm
https://unpkg.com/[email protected]/bin/canvaskit.js

Please add this also as part of the caching resources in the generated service worker file

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityplatform-webWeb applications specificallyteam-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions