Skip to content

Commit

Permalink
fix(build): use resourcePath for loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Sep 23, 2024
1 parent e4382e4 commit 5ed803d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/build/src/lib/loaders/angular-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function loader(this: LoaderContext<unknown>, 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);
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/lib/loaders/js-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function loader(this: LoaderContext<unknown>, 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) => {
Expand Down

0 comments on commit 5ed803d

Please sign in to comment.