mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
eb89e392cf
### What * Fix `next/dynamic` with babel config and `src/` directory * Separate the existing `next/dynamic` dev tests, make it easier to cover more cases, add `.babelrc` + `src/` folder coverage case ### Why * The new transform is using `src/` or root dir as the base directory `next/dynamic` for generating relative module path as unique key for `next/dynamic` modules. The babel one was always using the root dir (`cwd`), which is incorrect. It should use the `src/` dir. In the future we could make the different solution to generate the unique id simpler, instead of using relative paths Closes NEXT-3254 Closes NEXT-3251 Fixes #64741
3 lines
68 B
TypeScript
3 lines
68 B
TypeScript
process.env.TEST_BASE_PATH = '/docs'
|
|
require('./next-dynamic.test')
|