Skip to content

[flutter_tools] allow configuring libraries spec path for the web compilation#51590

Merged
fluttergithubbot merged 6 commits intoflutter:masterfrom
jonahwilliams:support_correct_config_libraries_web
Feb 28, 2020
Merged

[flutter_tools] allow configuring libraries spec path for the web compilation#51590
fluttergithubbot merged 6 commits intoflutter:masterfrom
jonahwilliams:support_correct_config_libraries_web

Conversation

@jonahwilliams
Copy link
Copy Markdown
Contributor

@jonahwilliams jonahwilliams commented Feb 27, 2020

Description

Pass libraries-spec URI to the frontend_server for web builds. Fixes #50801

For a real integration test, we need a web driver integration with flutter run, since flutter test --platform=chrome uses a different compiler it won't fail if this is broken

@fluttergithubbot fluttergithubbot added tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Feb 27, 2020
@jonahwilliams jonahwilliams marked this pull request as ready for review February 28, 2020 06:34
)).generator as DefaultResidentCompiler;

expect(residentCompiler.librariesSpec,
globals.fs.file(globals.artifacts.getArtifactPath(Artifact.flutterWebLibrariesJson, mode: BuildMode.debug))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this one pass a mode, but the call in resident_runner.dart doesnt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, It shouldn't be necessary - removed

@fluttergithubbot fluttergithubbot merged commit 515027a into flutter:master Feb 28, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conditional imports not working on web in debug mode [web]

4 participants