Skip to content

Commit

Permalink
Fix next-image-loader-stub
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Nov 16, 2022
1 parent 2d815dc commit 44129a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/frameworks/nextjs/src/next-image-loader-stub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const nextImageLoaderStub: RawLoaderDefinition<LoaderOptions> = function (conten

this.emitFile(outputPath, content);

const { width, height } = imageSizeOf(content);
const { width, height } = imageSizeOf(this.resourcePath);

return `export default ${JSON.stringify({
src: outputPath,
Expand All @@ -28,4 +28,4 @@ const nextImageLoaderStub: RawLoaderDefinition<LoaderOptions> = function (conten

nextImageLoaderStub.raw = true;

export = nextImageLoaderStub;
export default nextImageLoaderStub;

0 comments on commit 44129a4

Please sign in to comment.