File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/angular/build/src/tools/esbuild Expand file tree Collapse file tree 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 {
4646 return {
4747 name : 'angular-wasm' ,
4848 setup ( build ) : void {
49- build . onResolve ( { filter : / .w a s m $ / } , async ( args ) => {
49+ build . onResolve ( { filter : / \ .w a s m $ / } , async ( args ) => {
5050 // Skip if already resolving the WASM file to avoid infinite resolution
5151 if ( args . pluginData ?. [ WASM_RESOLVE_SYMBOL ] ) {
5252 return ;
@@ -94,7 +94,7 @@ export function createWasmPlugin(options: WasmPluginOptions): Plugin {
9494 } ) ;
9595
9696 build . onLoad (
97- { filter : / .w a s m $ / , namespace : WASM_INIT_NAMESPACE } ,
97+ { filter : / \ .w a s m $ / , namespace : WASM_INIT_NAMESPACE } ,
9898 createCachedLoad ( cache , async ( args ) => {
9999 // Ensure async mode is supported
100100 if ( ! allowAsync ) {
@@ -194,7 +194,7 @@ export function createWasmPlugin(options: WasmPluginOptions): Plugin {
194194 } ) ,
195195 ) ;
196196
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 ) => {
198198 const contents = args . pluginData . wasmContents ?? ( await readFile ( args . path ) ) ;
199199
200200 let loader : 'binary' | 'file' = 'file' ;
You can’t perform that action at this time.
0 commit comments