rsnext/test/e2e/app-dir
Shu Ding a25c32a9a0
Fix CSS loaders in pages when app dir is enabled (#45619)
This PR changes the loader logic from something like `ctx.hasAppDir ?
useAppLoaderForCSS : usePagesLoaderForCSS`, to a mental modal of
`[ctx.hasAppDir ? useAppLoaderForCSSInAppLayer : null,
usePagesLoaderForCSSInPagesLayer]`. This change makes sure that both
pages and app can exist and work well together, instead of a binary
switch.

Also renamed the loader with `-dev` removed, because it is used for
production build too.

NEXT-461

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/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`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
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`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-08 20:55:01 +01:00
..
app Fix CSS loaders in pages when app dir is enabled (#45619) 2023-02-08 20:55:01 +01:00
app-alias Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-edge Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-edge-global Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-external Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-middleware Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
app-prefetch Skip prefetching for bots in app-router too (#45678) 2023-02-07 14:15:10 -08:00
app-rendering Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-static Update error message for dynamic = "error" (#45432) 2023-02-01 11:20:35 +00:00
asset-prefix Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
async-component-preload Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
autoscroll-with-css-modules Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
back-button-download-bug Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
create-next-app-template Optimize bundle size for appDir (#42252) 2022-10-31 17:50:35 +00:00
create-root-layout Add project directory rename/remove handling (#44911) 2023-01-18 14:37:40 -08:00
dynamic Separate next/dynamic implementation for app and pages (#45565) 2023-02-04 01:45:35 +00:00
dynamic-href Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
global-error Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
head Add warning for head.js with metadata docs link (#45680) 2023-02-07 17:02:40 -08:00
import Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
interpolability-with-pages Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
layout-params Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
metadata Picking apple-icon instead of apple-touch-icon (#45673) 2023-02-07 13:25:39 -08:00
navigation-and-querystring Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
next-font Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
next-image Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
rewrites-redirects Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
root-layout Test navigation between multiple root layouts (#43762) 2023-01-05 13:27:29 +01:00
router-autoscroll Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
rsc-basic Revert "Revert "Revert "Revert "Initial support for metadata (#44729)"" (#45113)"" (#45196) 2023-01-24 13:21:59 +00:00
test-template/{{ toFileName name }} Change test template to use TS and improve template for app-dir (#44227) 2023-01-06 20:36:47 +00:00
trailingslash Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
use-selected-layout-segment-s Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
with-babel Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00