rsnext/test/lib/next-modes
Jiachi Liu 7818c2d736
Allow using ESM pkg with custom incremental cache (#59863)
Use dynamic import instead of require to load the incremental cache
handled, so when using ESM it will still work.

Updated the tests and merged them into new test suite, include 3 cases
of custom cache definition:
- CJS with `module.exports`
- CJS with `exports.default` with ESM mark
- ESM with `export default`

Closes NEXT-1924
Fixes #58509
2024-01-03 14:22:50 +01:00
..
base.ts Allow using ESM pkg with custom incremental cache (#59863) 2024-01-03 14:22:50 +01:00
next-deploy.ts Update Deployment Testing (#59448) 2023-12-12 14:35:48 -07:00
next-dev.ts Improve performance of String.prototype.split uses (#56746) 2023-10-19 00:25:15 +00:00
next-start.ts chore(export)!: remove next export in favor of output: export in next.config.js (#57085) 2023-10-23 18:03:58 +00:00