rsnext/packages/next/server
Shu Ding b18489461b
Make sure polyfills are added for browsers without module support (#41029)
This PR makes sure that the same polyfills are added in app dir for
browsers that match `nomodule`. Main difference from the polyfills in
pages is that the script tags here cannot have `defer` as all other
scripts will be async by default, and polyfills must be executed before
all of them.

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a 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`
- [x] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-09-29 16:22:21 -07:00
..
api-utils Improve types for <Image /> and responseLimit (#40863) 2022-09-26 22:41:25 -07:00
base-http Improve types for <Image /> and responseLimit (#40863) 2022-09-26 22:41:25 -07:00
dev Alias all client, shared, pages dist assets for esm (#41034) 2022-09-29 21:24:04 +00:00
lib Add handling for static generation in app (#40561) 2022-09-19 18:05:28 +00:00
response-cache Eliminate path polyfill and incremental-cache from base server (#39548) 2022-08-12 15:25:47 +00:00
send-payload Change Flight response content type to application/octet-stream (#40665) 2022-09-18 20:49:05 +00:00
web Rename flight parameters to rsc/next (#40979) 2022-09-28 13:18:37 +02:00
accept-header.ts Enable @typescript-eslint/no-use-before-define for functions (#39602) 2022-08-15 10:29:51 -04:00
app-render.tsx Make sure polyfills are added for browsers without module support (#41029) 2022-09-29 16:22:21 -07:00
base-server.ts Drop legacy React DOM Server in Edge runtime (#40018) 2022-09-29 10:56:28 +02:00
body-streams.ts build: upgrade edge-runtime (#40788) 2022-09-23 12:01:36 +00:00
config-schema.ts Revert "Merge e2e test node_modules (#40926)" (#40974) 2022-09-28 08:08:46 +00:00
config-shared.ts feat(experimental): option to polyfill fetch using undici in Node.js <18 (#40318) 2022-09-27 13:37:28 -07:00
config-utils.ts feat(experimental): option to polyfill fetch using undici in Node.js <18 (#40318) 2022-09-27 13:37:28 -07:00
config.ts feat(experimental): option to polyfill fetch using undici in Node.js <18 (#40318) 2022-09-27 13:37:28 -07:00
crypto-utils.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
font-utils.ts Add support for fallback font and css variable for font/local (#40990) 2022-09-28 12:19:52 -07:00
get-app-route-from-entrypoint.ts App Build Stats (#38884) 2022-08-10 19:31:01 +00:00
get-page-files.ts Add initial handling for routing tests (#36635) 2022-05-03 10:37:23 +00:00
get-route-from-entrypoint.ts App Build Stats (#38884) 2022-08-10 19:31:01 +00:00
google-font-metrics.json Adding experimentalAdjustFallback feature to font optimization (#40185) 2022-09-16 14:13:21 -07:00
htmlescape.ts Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -07:00
image-optimizer.ts Update to stable: next/future/image, remotePatterns, unoptimized (#40142) 2022-08-31 22:44:17 +00:00
internal-utils.ts Rename flight parameters to rsc/next (#40979) 2022-09-28 13:18:37 +02:00
load-components.ts Add handling for static generation in app (#40561) 2022-09-19 18:05:28 +00:00
match-bundle.ts App Build Stats (#38884) 2022-08-10 19:31:01 +00:00
next-server.ts Rename flight parameters to rsc/next (#40979) 2022-09-28 13:18:37 +02:00
next.ts Handle rewriting WebSocket requests (#39463) 2022-08-10 17:00:30 +00:00
node-polyfill-fetch.js feat(experimental): option to polyfill fetch using undici in Node.js <18 (#40318) 2022-09-27 13:37:28 -07:00
node-polyfill-web-streams.js Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
node-web-streams-helper.ts Make sure polyfills are added for browsers without module support (#41029) 2022-09-29 16:22:21 -07:00
optimize-amp.ts Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
post-process.ts Adding experimentalAdjustFallback feature to font optimization (#40185) 2022-09-16 14:13:21 -07:00
render-result.ts Change Flight response content type to application/octet-stream (#40665) 2022-09-18 20:49:05 +00:00
render.tsx Drop legacy React DOM Server in Edge runtime (#40018) 2022-09-29 10:56:28 +02:00
request-meta.ts Fix handling with custom _error and pages/500 (#40110) 2022-08-30 18:14:12 -05:00
require.ts Add handling for static generation in app (#40561) 2022-09-19 18:05:28 +00:00
router.ts Revert "Revert "Refactor Server Router" (#40328)" (#40333) 2022-09-07 16:38:10 -07:00
serve-static.ts fix(#39706): add avif support for node serve static (#39733) 2022-08-18 17:57:12 +00:00
server-route-utils.ts Enable @typescript-eslint/no-use-before-define variables,enums,typedefs for core files (#39511) 2022-08-11 16:32:52 -05:00
utils.ts Mask Flight Parameters from Middleware (#39939) 2022-09-15 14:53:51 +00:00
web-server.ts Drop legacy React DOM Server in Edge runtime (#40018) 2022-09-29 10:56:28 +02:00