File tree 1 file changed +3
-3
lines changed
packages/angular/build/src/tools/esbuild
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export function createWasmPlugin(options: WasmPluginOptions): Plugin {
46
46
return {
47
47
name : 'angular-wasm' ,
48
48
setup ( build ) : void {
49
- build . onResolve ( { filter : / .w a s m $ / } , async ( args ) => {
49
+ build . onResolve ( { filter : / \ .w a s m $ / } , async ( args ) => {
50
50
// Skip if already resolving the WASM file to avoid infinite resolution
51
51
if ( args . pluginData ?. [ WASM_RESOLVE_SYMBOL ] ) {
52
52
return ;
@@ -94,7 +94,7 @@ export function createWasmPlugin(options: WasmPluginOptions): Plugin {
94
94
} ) ;
95
95
96
96
build . onLoad (
97
- { filter : / .w a s m $ / , namespace : WASM_INIT_NAMESPACE } ,
97
+ { filter : / \ .w a s m $ / , namespace : WASM_INIT_NAMESPACE } ,
98
98
createCachedLoad ( cache , async ( args ) => {
99
99
// Ensure async mode is supported
100
100
if ( ! allowAsync ) {
@@ -194,7 +194,7 @@ export function createWasmPlugin(options: WasmPluginOptions): Plugin {
194
194
} ) ,
195
195
) ;
196
196
197
- build . onLoad ( { filter : / .w a s m $ / , namespace : WASM_CONTENTS_NAMESPACE } , async ( args ) => {
197
+ build . onLoad ( { filter : / \ .w a s m $ / , namespace : WASM_CONTENTS_NAMESPACE } , async ( args ) => {
198
198
const contents = args . pluginData . wasmContents ?? ( await readFile ( args . path ) ) ;
199
199
200
200
let loader : 'binary' | 'file' = 'file' ;
You can’t perform that action at this time.
0 commit comments