rsnext/packages/next/build
Naoyuki Kanezawa 9e53af8e30
Fix next node buildin module error message for edge runtime (#36434)
- improve the message for importing node builtin module on edge runtime
- fix to show the message on overlay of error browser with `next dev`
- fix https://github.com/vercel/next.js/issues/36237

The message is NOT shown when using edge runtime (not middleware) since I cannot find a way to detect a webpack compilation is for edge runtime.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
2022-05-02 15:21:40 +00:00
..
babel Reexports styled-jsx JSXStyle in nextjs (#36585) 2022-04-30 20:25:05 +00:00
jest Fix swc jest pagesDir config (#36623) 2022-05-02 14:59:38 +00:00
output Fix next node buildin module error message for edge runtime (#36434) 2022-05-02 15:21:40 +00:00
polyfills Fix global process testing for the process polyfill (#33220) 2022-01-13 16:44:55 +00:00
swc Add pagesDir to Jest transformer (#36599) 2022-05-01 16:39:30 +00:00
webpack Fix next node buildin module error message for edge runtime (#36434) 2022-05-02 15:21:40 +00:00
compiler.ts Fix next node buildin module error message for edge runtime (#36434) 2022-05-02 15:21:40 +00:00
cssnano-simple.js Pre-compile more dependencies (#32627) 2021-12-20 14:01:35 +01:00
entries.ts Update findPagesDir (#36619) 2022-05-02 15:07:21 +02:00
generate-build-id.ts Fix generateBuildId type that can be async function (#28040) 2021-08-12 22:26:44 +00:00
index.ts Fix next node buildin module error message for edge runtime (#36434) 2022-05-02 15:21:40 +00:00
is-writeable.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
load-jsconfig.ts Experimental next/jest config helper (#31246) 2021-11-10 16:16:15 -08:00
spinner.ts [Feature] Progress bar for static build (#15297) 2020-08-04 09:58:23 +02:00
utils.ts Fix next node buildin module error message for edge runtime (#36434) 2022-05-02 15:21:40 +00:00
webpack-config.ts Fix next node buildin module error message for edge runtime (#36434) 2022-05-02 15:21:40 +00:00
worker.ts use a shared worker pool for collecting page data and static page generation (#27924) 2021-08-12 19:54:49 +00:00
write-build-id.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00