Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #98 from tubbo/fix-extra-esmodule-definition
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanClementsHax authored Jun 28, 2022
2 parents 2dc55ea + 375a4eb commit 583e145
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/images/next-image-stub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ if (semver.gt(process.env.__NEXT_VERSION!, '9.0.0')) {
})

// https://github.com/vercel/next.js/issues/36417#issuecomment-1117360509
if (semver.gte(process.env.__NEXT_VERSION!, '12.1.5')) {
if (
semver.gte(process.env.__NEXT_VERSION!, '12.1.5') &&
semver.lt(process.env.__NEXT_VERSION!, '12.2.0')
) {
Object.defineProperty(NextImage, '__esModule', {
configurable: true,
value: true
Expand Down

0 comments on commit 583e145

Please sign in to comment.