rsnext/packages
Jiachi Liu 73e4895dfa
Use addDependency to track metadata route file changes (#66714)
### What

Use `addDependency` to track the file path passed to
`next-metadata-route-loader`

NOTE: We cannot apply the `next-metadata-route-loader` directly to the
metatda convention source files, since the json file could be processed
by json loader (Related previous fix #62615)

### Why

Previously when we passed down the file path as argument to the loader,
which sort of breaking the caching of webpack as the actual resource
path is string, it's not tracked as a dependency. This change fixed the
bad caching issue of static metadata routes. Based on the above reason
we use `addDependency` here to track the dependency change

Closes NEXT-3521
Closes #65755
2024-06-11 17:19:23 +02:00
..
create-next-app v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
eslint-config-next v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
eslint-plugin-next v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
font Update font data (#66730) 2024-06-11 08:01:47 -07:00
next Use addDependency to track metadata route file changes (#66714) 2024-06-11 17:19:23 +02:00
next-bundle-analyzer v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
next-codemod v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
next-env v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
next-mdx v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
next-plugin-storybook v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
next-polyfill-module v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
next-polyfill-nomodule v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
next-swc v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
react-refresh-utils v15.0.0-canary.25 2024-06-11 00:13:55 +00:00
third-parties v15.0.0-canary.25 2024-06-11 00:13:55 +00:00