forked from firka/flutter
Revert Dual Web Compile changes (#143175)
Dual Web Compile has had some issues where `flutter test` is not respecting the `--web-renderer` flag for some reason. I haven't gotten entirely to the bottom of the issue, but for now we need to rever these changes while I investigate. This reverts the following PRs: https://github.com/flutter/flutter/pull/143128 https://github.com/flutter/flutter/pull/141396 While doing this revert, I had a few merge conflicts with https://github.com/flutter/flutter/pull/142760, and I tried to resolve the merge conflicts within the spirit of that PR's change, but @chingjun I might need your input on whether the imports I have modified are okay with regards to the change you were making.
This commit is contained in:
@@ -56,27 +56,6 @@ String indexHtmlFlutterJsPromisesFull = _generateFlutterJsIndexHtml('''
|
||||
});
|
||||
''');
|
||||
|
||||
/// index_with_flutterjs.html
|
||||
String indexHtmlFlutterJsLoad = _generateFlutterJsIndexHtml('''
|
||||
window.addEventListener('load', function(ev) {
|
||||
_flutter.buildConfig = {
|
||||
builds: [
|
||||
{
|
||||
"compileTarget": "dartdevc",
|
||||
"renderer": "html",
|
||||
"mainJsPath": "main.dart.js",
|
||||
}
|
||||
]
|
||||
};
|
||||
// Download main.dart.js
|
||||
_flutter.loader.load({
|
||||
serviceWorkerSettings: {
|
||||
serviceWorkerVersion: serviceWorkerVersion,
|
||||
},
|
||||
});
|
||||
});
|
||||
''');
|
||||
|
||||
/// index_without_flutterjs.html
|
||||
String indexHtmlNoFlutterJs = '''
|
||||
<!DOCTYPE HTML>
|
||||
|
||||
Reference in New Issue
Block a user