File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
lib/src/runner/browser/compilers Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3
3
* Restrict to latest version of analyzer package.
4
4
* Require Dart 3.7
5
5
* Add ` --coverage-path ` and ` --branch-coverage ` options to ` dart test ` .
6
+ * Serve dart2wasm source map files.
6
7
7
8
## 1.26.3
8
9
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ class Dart2WasmSupport extends CompilerSupport with WasmHtmlWrapper {
134
134
var baseUrl =
135
135
'${p .toUri (p .relative (dartPath , from : _root )).path }.browser_test.dart' ;
136
136
var wasmUrl = '$baseUrl .wasm' ;
137
+ var sourceMapUrl = '$wasmUrl .map' ;
137
138
var jsRuntimeWrapperUrl = '$baseUrl .js' ;
138
139
var jsRuntimeUrl = '$baseUrl .mjs' ;
139
140
var htmlUrl = '$baseUrl .html' ;
@@ -186,6 +187,14 @@ class Dart2WasmSupport extends CompilerSupport with WasmHtmlWrapper {
186
187
headers: {'Content-Type' : 'text/html' },
187
188
);
188
189
});
190
+
191
+ var sourceMapPath = '$wasmPath .map' ;
192
+ _pathHandler.add (sourceMapUrl, (request) {
193
+ return shelf.Response .ok (
194
+ File (sourceMapPath).readAsBytesSync (),
195
+ headers: {'Content-Type' : 'application/json' },
196
+ );
197
+ });
189
198
});
190
199
}
191
200
You can’t perform that action at this time.
0 commit comments