Skip to content

Commit

Permalink
Use the same Image Context for ESM and CommonJS
Browse files Browse the repository at this point in the history
  • Loading branch information
martinnabhan committed Oct 3, 2023
1 parent c1b33d8 commit bc8a496
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 1 addition & 6 deletions code/frameworks/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./image-context": {
"types": "./dist/image-context.d.ts",
"require": "./dist/image-context.js",
"import": "./dist/image-context.mjs"
},
"./dist/image-context": {
"types": "./dist/image-context.d.ts",
"require": "./dist/image-context.js",
"require": "./dist/image-context.mjs",
"import": "./dist/image-context.mjs"
},
"./preset": {
Expand Down
6 changes: 0 additions & 6 deletions code/frameworks/nextjs/template/stories/Image.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ export const Lazy = {
width: 50,
height: 50,
},
parameters: {
// ignoring in Chromatic to avoid inconsistent snapshots since the image is sometimes not loaded in time
chromatic: { disableSnapshot: true },
},
decorators: [
(Story) => (
<>
Expand All @@ -78,8 +74,6 @@ export const Lazy = {
export const Eager = {
...Lazy,
parameters: {
// ignoring in Chromatic to avoid inconsistent snapshots since the image is sometimes not loaded in time
chromatic: { disableSnapshot: true },
nextjs: {
image: {
loading: 'eager',
Expand Down

0 comments on commit bc8a496

Please sign in to comment.