mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
tool/build/web: move source-maps CLI flag to "general" web section (#151722)
...now that wasm supports source maps (see https://github.com/flutter/flutter/pull/151643)
This commit is contained in:
parent
9e88446f89
commit
ec16c86972
@ -65,6 +65,12 @@ class BuildWebCommand extends BuildSubCommand {
|
||||
defaultsTo: '${WebCompilerConfig.kDefaultOptimizationLevel}',
|
||||
allowed: const <String>['0', '1', '2', '3', '4'],
|
||||
);
|
||||
argParser.addFlag(
|
||||
'source-maps',
|
||||
help: 'Generate a sourcemap file. These can be used by browsers '
|
||||
'to view and debug the original source code of a compiled and minified Dart '
|
||||
'application.'
|
||||
);
|
||||
|
||||
//
|
||||
// JavaScript compilation options
|
||||
@ -75,12 +81,6 @@ class BuildWebCommand extends BuildSubCommand {
|
||||
help: 'Disable dynamic generation of code in the generated output. '
|
||||
'This is necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/).'
|
||||
);
|
||||
argParser.addFlag(
|
||||
'source-maps',
|
||||
help: 'Generate a sourcemap file. These can be used by browsers '
|
||||
'to view and debug the original source code of a compiled and minified Dart '
|
||||
'application.'
|
||||
);
|
||||
argParser.addOption('dart2js-optimization',
|
||||
help: 'Sets the optimization level used for Dart compilation to JavaScript. '
|
||||
'Deprecated: Please use "-O=<level>" / "--optimization-level=<level>".',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user