Skip to content

Commit

Permalink
Merge pull request RyanClementsHax#98 from tubbo/fix-extra-esmodule-d…
Browse files Browse the repository at this point in the history
…efinition
  • Loading branch information
RyanClementsHax committed 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
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.