rsnext/packages/next/build/webpack/plugins
Jiachi Liu 05bdd715a8
Use import to load page and layout (#42325)
Fixes #42534

* Use eager `import()` to load page/layout to avoid esm module resolution error, eager is to make sure all the sub resources like css are also included
* Fix layer detection, should use `module.layer` directly since `module.resourceResolveData` is not alway presented. It lost when switching from `require()` to `import()` for page/layout component

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`
2022-11-10 02:16:59 +00:00
..
terser-webpack-plugin Set swcMinify as an attribute on terser-webpack-plugin-optimize span (#37416) 2022-06-06 15:09:33 +00:00
wellknown-errors-plugin Fix module trace error messages to not include queries (#41738) 2022-10-24 12:32:43 -07:00
app-build-manifest-plugin.ts types: leverage webpack types and remove casting (#42104) 2022-10-29 04:00:33 +02:00
build-manifest-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
copy-file-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
css-minimizer-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
flight-client-entry-plugin.ts Use import to load page and layout (#42325) 2022-11-10 02:16:59 +00:00
flight-manifest-plugin.ts Fix entry creation on Windows (#42421) 2022-11-03 10:46:38 -07:00
flight-types-plugin.ts Fix build type error of page params (#42019) 2022-10-27 16:53:38 -07:00
font-loader-manifest-plugin.ts Recover from font loader error in dev (#41251) 2022-10-08 01:53:24 +02:00
font-stylesheet-gathering-plugin.ts BREAKING CHANGE: Remove target: serverless (#41495) 2022-10-18 09:47:13 -07:00
jsconfig-paths-plugin.ts Add handling for auto installing TypeScript deps and HMRing tsconfig (#39838) 2022-08-23 13:16:47 -05:00
middleware-plugin.ts types: leverage webpack types and remove casting (#42104) 2022-10-29 04:00:33 +02:00
mini-css-extract-plugin.ts use official mini-css-extract-plugin and experimentalUseImportModule (#24573) 2021-05-12 16:04:01 +00:00
next-drop-client-page-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
next-trace-entrypoints-plugin.ts Ensure build trace ignores apply correctly when nested (#42606) 2022-11-07 17:43:58 -08:00
nextjs-require-cache-hot-reloader.ts Upgrade react-server-dom-webpack and precompiled assets (#41547) 2022-10-19 15:09:49 +00:00
pages-manifest-plugin.ts BREAKING CHANGE: Remove target: serverless (#41495) 2022-10-18 09:47:13 -07:00
profiling-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
react-loadable-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
subresource-integrity-plugin.ts Make sure polyfills are added for browsers without module support (#41029) 2022-09-29 16:22:21 -07:00
telemetry-plugin.ts Add telemetry for @next/font (#42579) 2022-11-08 09:02:26 -08:00