diff --git a/packages/build/src/lib/loaders/angular-loader.ts b/packages/build/src/lib/loaders/angular-loader.ts index a9827fc..b317dd8 100644 --- a/packages/build/src/lib/loaders/angular-loader.ts +++ b/packages/build/src/lib/loaders/angular-loader.ts @@ -17,7 +17,7 @@ export default function loader(this: LoaderContext, content: string) { this._compilation as NgRspackBuildEnhancedCompilation )[NG_RSPACK_SYMBOL_NAME]; - const request = this.resource; + const request = this.resourcePath; const contents = typescriptFileCache.get(request); if (contents === undefined) { callback(null, content); diff --git a/packages/build/src/lib/loaders/js-loader.ts b/packages/build/src/lib/loaders/js-loader.ts index 7225db3..08fd12c 100644 --- a/packages/build/src/lib/loaders/js-loader.ts +++ b/packages/build/src/lib/loaders/js-loader.ts @@ -17,7 +17,7 @@ export default function loader(this: LoaderContext, content: string) { this._compilation as NgRspackBuildEnhancedCompilation )[NG_RSPACK_SYMBOL_NAME]; - const request = this.resource; + const request = this.resourcePath; javascriptTransformer .transformFile(request, false, false) .then((contents) => {