Skip to content

Commit ec16c86

Browse files
authored
tool/build/web: move source-maps CLI flag to "general" web section (#151722)
...now that wasm supports source maps (see flutter/flutter#151643)
1 parent 9e88446 commit ec16c86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/flutter_tools/lib/src/commands/build_web.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ class BuildWebCommand extends BuildSubCommand {
6565
defaultsTo: '${WebCompilerConfig.kDefaultOptimizationLevel}',
6666
allowed: const <String>['0', '1', '2', '3', '4'],
6767
);
68+
argParser.addFlag(
69+
'source-maps',
70+
help: 'Generate a sourcemap file. These can be used by browsers '
71+
'to view and debug the original source code of a compiled and minified Dart '
72+
'application.'
73+
);
6874

6975
//
7076
// JavaScript compilation options
@@ -75,12 +81,6 @@ class BuildWebCommand extends BuildSubCommand {
7581
help: 'Disable dynamic generation of code in the generated output. '
7682
'This is necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/).'
7783
);
78-
argParser.addFlag(
79-
'source-maps',
80-
help: 'Generate a sourcemap file. These can be used by browsers '
81-
'to view and debug the original source code of a compiled and minified Dart '
82-
'application.'
83-
);
8484
argParser.addOption('dart2js-optimization',
8585
help: 'Sets the optimization level used for Dart compilation to JavaScript. '
8686
'Deprecated: Please use "-O=<level>" / "--optimization-level=<level>".',

0 commit comments

Comments
 (0)