Skip to content

Commit

Permalink
Add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Jan 13, 2025
1 parent e9e182d commit e848a90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,11 @@ export default async function getBaseWebpackConfig(
],
},
resourceQuery: {
// Do not apply next-flight-loader to imports generated by the
// next-metadata-image-loader, to avoid generating unnecessary
// and conflicting entries in the flight client entry plugin.
// These are already covered by the next-metadata-route-loader
// entries.
not: [
new RegExp(WEBPACK_RESOURCE_QUERIES.metadata),
new RegExp(WEBPACK_RESOURCE_QUERIES.metadataImageMeta),
Expand Down

0 comments on commit e848a90

Please sign in to comment.