rsnext/test
Shu Ding d5fa555841
Implement SWC transformer for server and client graphs (#40603)
This is an initial implementation of the Server Components SWC
transformer. For the server graph, it detects client entries via the
`"client"` directive and transpile them into module reference code; for
the client graph, it removes the directives. And for both graphs, it
checks if there is any invalid imports for the given environment and
shows proper errors.

With that added, we can switch from `next-flight-client-loader` to
directly use the SWC loader in one pass. Next step is to get rid of the
`.client.` extension in other plugins.

## Bug

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

## Feature

- [x] 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 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-09-17 00:12:59 +02:00
..
.stats-app Add edge ssr to pr stats (#39621) 2022-08-15 13:28:31 -05:00
__mocks__ Update Edge Runtime (#38862) 2022-07-21 18:29:19 +00:00
development chore: Update swc (#40520) 2022-09-15 14:22:11 +02:00
e2e Implement SWC transformer for server and client graphs (#40603) 2022-09-17 00:12:59 +02:00
integration fix: handle notFound: true in / with next export (#40592) 2022-09-16 21:39:48 +00:00
lib Subresource Integrity for App Directory (#39729) 2022-09-08 15:17:15 -07:00
production fix: loosen webpack compilation with fallbackNodePolyfills: false (#40612) 2022-09-16 13:23:56 -07:00
unit fix: eslint no-script-component-in-head error url (#40422) 2022-09-12 16:15:33 +00:00
.gitignore
jest-setup-after-env.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
jest.d.ts Adds tests to ensure eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined. (#38183) 2022-06-30 11:31:33 -05:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00

See Testing for more information on how you can run/write/debug tests for Next.js.