rsnext/packages/next/lib
Shu Ding 0831dd59c9
chore: Clean up imports and unused code (#39044)
A small refactor PR to convert some imports to type imports, as well as removing a couple of unused exports.

The Edge SSR loader is also missing the global process injection (`enhanceGlobals`).

## 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 `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
2022-07-26 21:41:59 +00:00
..
eslint Detect pnpm correctly when installing missing dependencies (#37813) 2022-06-19 12:33:23 +00:00
helpers Detect pnpm correctly when installing missing dependencies (#37813) 2022-06-19 12:33:23 +00:00
typescript Move styled-jsx type reference (#37964) 2022-06-23 19:26:08 +00:00
web Implement web server as the request handler for edge SSR (#33635) 2022-01-26 06:22:11 +00:00
chalk.ts Add process env NEXT_RUNTIME (#36383) 2022-04-26 17:54:28 +00:00
coalesced-function.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
compile-error.ts Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
constants.ts chore: Clean up imports and unused code (#39044) 2022-07-26 21:41:59 +00:00
detect-typo.ts Add CLI command typo detection (#34836) 2022-02-26 07:05:26 -08:00
download-wasm-swc.ts Update matched path params priority (#37646) 2022-06-13 13:34:08 +00:00
fatal-error.ts Adds ESLint with default rule-set (#23702) 2021-04-30 11:09:07 +00:00
file-exists.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
find-config.ts Support postcss.config.cjs (#38486) 2022-07-18 14:34:29 -05:00
find-pages-dir.ts Rename app paths folder (#37146) 2022-05-25 11:46:26 +02:00
flat-readdir.ts fix(#37106): middleware can not be loaded from src folder (#37428) 2022-06-08 14:10:05 +00:00
get-package-version.ts Small code improvements (#37227) 2022-05-26 23:19:47 +00:00
get-project-dir.ts Add CLI command typo detection (#34836) 2022-02-26 07:05:26 -08:00
has-necessary-dependencies.ts Interpolate module.exports as default import (#36082) 2022-04-12 14:32:42 +00:00
import-next-warning.ts Add warning when importing "next" directly (#35884) 2022-04-05 10:57:45 -05:00
install-dependencies.ts Detect pnpm correctly when installing missing dependencies (#37813) 2022-06-19 12:33:23 +00:00
interop-default.ts Add new target for middleware (#30299) 2021-10-26 18:50:56 +02:00
is-error.ts fix: fixes #33314 move is-plain-object for es5 compilation (#33690) 2022-01-27 17:59:42 +00:00
is-serializable-props.ts fix: fixes #33314 move is-plain-object for es5 compilation (#33690) 2022-01-27 17:59:42 +00:00
load-custom-routes.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
non-nullable.ts temporary: re-flag font optimization (#20372) 2020-12-21 19:26:00 +00:00
oxford-comma-list.ts refactor(typescript): extract preflight functions (#13510) 2020-05-28 23:39:46 +00:00
patch-incorrect-lockfile.ts Update lockfile patching for different versions (#36959) 2022-05-17 14:45:23 +00:00
pick.ts [middleware] Support any method when fetching a Request instance (#37540) 2022-06-08 11:00:49 +00:00
pretty-bytes.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
recursive-copy.ts Add initial standalone build handling (#31003) 2021-11-09 11:03:20 -06:00
recursive-delete.ts Fix various Trusted Types violations without use of policy (#34726) 2022-05-05 00:11:36 +00:00
recursive-readdir.ts Remove extraneous fs.stat calls (#27779) 2021-08-09 15:28:00 +00:00
try-to-parse-path.ts Deprecate nested Middleware in favor of root middleware (#36772) 2022-05-19 15:46:21 +00:00
verify-partytown-setup.ts Detect pnpm correctly when installing missing dependencies (#37813) 2022-06-19 12:33:23 +00:00
verifyAndLint.ts Ensure type check/link worker does not retry (#37324) 2022-05-31 11:30:38 -05:00
verifyTypeScriptSetup.ts fix(typescript): worker execution failed with custom next.config.js (#37125) 2022-05-23 20:30:48 +00:00
with-promise-cache.ts Extract and refactor getPageStaticInfo (#37062) 2022-05-20 14:24:00 +02:00
worker.ts Ensure workers are not left open (#34503) 2022-02-18 09:12:56 +00:00