Skip to content

Commit ca4c511

Browse files
committed
Build: Don't try to encode WASM as UTF-8 when copying it
1 parent 8b4f2d2 commit ca4c511

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

extensions/ql-vscode/gulpfile.ts/typescript.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,8 @@ export function copyWasmFiles() {
7777
// to configure the path to the WASM file. So, source-map will always load the file from `__dirname/mappings.wasm`.
7878
// In version 0.8.0, it may be possible to do this properly by calling SourceMapConsumer.initialize by
7979
// using the "browser" field in source-map's package.json to load the WASM file from a given file path.
80-
return src("node_modules/source-map/lib/mappings.wasm").pipe(dest("out"));
80+
return src("node_modules/source-map/lib/mappings.wasm", {
81+
// WASM is a binary format, so don't try to re-encode it as text.
82+
encoding: false,
83+
}).pipe(dest("out"));
8184
}

0 commit comments

Comments
 (0)