rsnext/packages/next/build/webpack
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
..
config Fix CSS handling rules (#42615) 2022-11-09 16:28:48 -08:00
loaders Use import to load page and layout (#42325) 2022-11-10 02:16:59 +00:00
plugins Use import to load page and layout (#42325) 2022-11-10 02:16:59 +00:00
require-hook.ts Bundle ssr client layer excepts react externals (#41606) 2022-10-22 16:33:51 -07:00
stringify-request.ts Update loader-utils (#30743) 2021-11-02 16:13:15 +01:00
utils.ts Improve type checking (#41427) 2022-10-19 18:28:36 +02:00