rsnext/packages/next/build/webpack
Shu Ding 6e734d92a1
Fix CSS imports from outside of the app dir when src folder is present (#42108)
Previously we use `path.join(compiler.context, chunk.name)` as the entry
name, which isn't always the case especially when there is the `src`
folder. This PR fixes that by using `appDir`.

## Bug

- [ ] Related issues linked using `fixes #number`
- [x] 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`
- [ ] 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 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>
2022-10-29 01:38:55 -07:00
..
config App dir sass (#41690) 2022-10-23 19:05:55 -07:00
loaders Ensure async_hooks are not resolved for client (#41778) 2022-10-25 02:51:41 -07:00
plugins Fix CSS imports from outside of the app dir when src folder is present (#42108) 2022-10-29 01:38:55 -07:00
require-hook.ts Bundle ssr client layer excepts react externals (#41606) 2022-10-22 16:33:51 -07:00
stringify-request.ts Update loader-utils (#30743) 2021-11-02 16:13:15 +01:00
utils.ts Improve type checking (#41427) 2022-10-19 18:28:36 +02:00