Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4f0f88b5
Unverified
Commit
4f0f88b5
authored
Jul 08, 2019
by
Jonah Williams
Committed by
GitHub
Jul 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable incremental compiler in dartdevc (#35681)
parent
34467289
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
build_script.dart
...ages/flutter_tools/lib/src/build_runner/build_script.dart
+4
-5
resident_web_runner.dart
packages/flutter_tools/lib/src/resident_web_runner.dart
+5
-2
No files found.
packages/flutter_tools/lib/src/build_runner/build_script.dart
View file @
4f0f88b5
...
...
@@ -8,10 +8,9 @@ import 'dart:convert'; // ignore: dart_convert_import
import
'dart:io'
;
// ignore: dart_io_import
import
'dart:isolate'
;
import
'package:analyzer/dart/ast/ast.dart'
;
import
'package:analyzer/dart/analysis/results.dart'
;
import
'package:analyzer/dart/analysis/utilities.dart'
;
import
'package:
build_runner/build_runner.dart'
as
build_runner
;
import
'package:
analyzer/dart/ast/ast.dart'
;
import
'package:build/build.dart'
;
import
'package:build_config/build_config.dart'
;
import
'package:build_modules/build_modules.dart'
;
...
...
@@ -19,6 +18,7 @@ import 'package:build_modules/builders.dart';
import
'package:build_modules/src/module_builder.dart'
;
import
'package:build_modules/src/platform.dart'
;
import
'package:build_modules/src/workers.dart'
;
import
'package:build_runner/build_runner.dart'
as
build_runner
;
import
'package:build_runner_core/build_runner_core.dart'
as
core
;
import
'package:build_test/builder.dart'
;
import
'package:build_test/src/debug_test_builder.dart'
;
...
...
@@ -26,7 +26,6 @@ import 'package:build_web_compilers/build_web_compilers.dart';
import
'package:build_web_compilers/builders.dart'
;
import
'package:build_web_compilers/src/dev_compiler_bootstrap.dart'
;
import
'package:crypto/crypto.dart'
;
import
'package:path/path.dart'
as
path
;
// ignore: package_path_import
import
'package:scratch_space/scratch_space.dart'
;
import
'package:test_core/backend.dart'
;
...
...
@@ -126,10 +125,10 @@ final List<core.BuilderApplication> builders = <core.BuilderApplication>[
librariesPath:
'libraries.json'
,
),
(
BuilderOptions
builderOptions
)
=>
DevCompilerBuilder
(
useIncrementalCompiler:
tru
e
,
useIncrementalCompiler:
fals
e
,
platform:
flutterWebPlatform
,
platformSdk:
builderOptions
.
config
[
'flutterWebSdk'
],
sdkKernelPath:
path
.
join
(
'kernel'
,
'flutter_ddc_sdk.dill'
),
sdkKernelPath:
path
.
url
.
join
(
'kernel'
,
'flutter_ddc_sdk.dill'
),
),
],
core
.
toAllPackages
(),
...
...
packages/flutter_tools/lib/src/resident_web_runner.dart
View file @
4f0f88b5
...
...
@@ -130,14 +130,17 @@ class ResidentWebRunner extends ResidentRunner {
return
1
;
}
// Start the web compiler and build the assets.
await
webCompilationProxy
.
initialize
(
final
bool
success
=
await
webCompilationProxy
.
initialize
(
projectDirectory:
flutterProject
.
directory
,
);
if
(!
success
)
{
throwToolExit
(
'Failed to compile for the web.'
);
}
_lastCompiled
=
DateTime
.
now
();
final
AssetBundle
assetBundle
=
AssetBundleFactory
.
instance
.
createBundle
();
final
int
build
=
await
assetBundle
.
build
();
if
(
build
!=
0
)
{
throwToolExit
(
'Error: Failed to build asset bundle'
);
throwToolExit
(
'Error: Failed to build asset bundle
.
'
);
}
await
writeBundle
(
fs
.
directory
(
getAssetBuildDirectory
()),
assetBundle
.
entries
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment