Skip to content

Commit

Permalink
Add webpackChunkName
Browse files Browse the repository at this point in the history
Co-authored-by: Ward Peeters <[email protected]>
  • Loading branch information
ascorbic and wardpeet authored Jan 19, 2021
1 parent ec35794 commit 2573c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-image/src/components/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export async function applyPolyfill(
ref: RefObject<HTMLImageElement>
): Promise<void> {
if (!(`objectFitPolyfill` in window)) {
await import(`objectFitPolyfill`)
await import(/* webpackChunkName: "gatsby-plugin-image-objectfit-polyfill" */ `objectFitPolyfill`)
}
;(window as any).objectFitPolyfill(ref.current)
}
Expand Down

0 comments on commit 2573c51

Please sign in to comment.