diff --git a/build_web_compilers/CHANGELOG.md b/build_web_compilers/CHANGELOG.md index 380ecdde4..32f02dd8b 100644 --- a/build_web_compilers/CHANGELOG.md +++ b/build_web_compilers/CHANGELOG.md @@ -1,3 +1,6 @@ +## 4.3.2 +- Fix Dart2JS adding extraneous sourcemaps to its archive when both wasm and js are enabled. + ## 4.3.1 - Fix Dart2JS sourcemaps not being written when both wasm and js are enabled. diff --git a/build_web_compilers/lib/src/dart2js_bootstrap.dart b/build_web_compilers/lib/src/dart2js_bootstrap.dart index 430278801..f3c431578 100644 --- a/build_web_compilers/lib/src/dart2js_bootstrap.dart +++ b/build_web_compilers/lib/src/dart2js_bootstrap.dart @@ -131,7 +131,11 @@ $librariesString final archive = Archive(); await for (final jsFile in fileGlob.list(root: rootDir)) { if (jsFile.path.endsWith(entrypointExtension) || - jsFile.path.endsWith(jsEntrypointSourceMapExtension)) { + jsFile.path.endsWith( + onlyCompiler + ? jsEntrypointSourceMapExtension + : dart2jsEntrypointSourceMapExtension, + )) { // These are explicitly output, and are not part of the archive. continue; } diff --git a/build_web_compilers/pubspec.yaml b/build_web_compilers/pubspec.yaml index 0802b454c..0f37d62fa 100644 --- a/build_web_compilers/pubspec.yaml +++ b/build_web_compilers/pubspec.yaml @@ -1,5 +1,5 @@ name: build_web_compilers -version: 4.3.1 +version: 4.3.2 description: Builder implementations wrapping the dart2js and DDC compilers. repository: https://github.com/dart-lang/build/tree/master/build_web_compilers resolution: workspace