rsnext/packages/next/build/webpack/plugins
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
..
terser-webpack-plugin Set swcMinify as an attribute on terser-webpack-plugin-optimize span (#37416) 2022-06-06 15:09:33 +00:00
wellknown-errors-plugin Fix module trace error messages to not include queries (#41738) 2022-10-24 12:32:43 -07:00
app-build-manifest-plugin.ts types: leverage webpack types and remove casting (#42104) 2022-10-29 04:00:33 +02:00
build-manifest-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
copy-file-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
css-minimizer-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
flight-client-entry-plugin.ts Fix CSS imports from outside of the app dir when src folder is present (#42108) 2022-10-29 01:38:55 -07:00
flight-manifest-plugin.ts types: leverage webpack types and remove casting (#42104) 2022-10-29 04:00:33 +02:00
flight-types-plugin.ts Fix build type error of page params (#42019) 2022-10-27 16:53:38 -07:00
font-loader-manifest-plugin.ts Recover from font loader error in dev (#41251) 2022-10-08 01:53:24 +02:00
font-stylesheet-gathering-plugin.ts BREAKING CHANGE: Remove target: serverless (#41495) 2022-10-18 09:47:13 -07:00
jsconfig-paths-plugin.ts Add handling for auto installing TypeScript deps and HMRing tsconfig (#39838) 2022-08-23 13:16:47 -05:00
middleware-plugin.ts types: leverage webpack types and remove casting (#42104) 2022-10-29 04:00:33 +02:00
mini-css-extract-plugin.ts use official mini-css-extract-plugin and experimentalUseImportModule (#24573) 2021-05-12 16:04:01 +00:00
next-drop-client-page-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
next-trace-entrypoints-plugin.ts Rest of options in experimental.turbotrace and documentation (#41817) 2022-10-26 14:31:49 +08:00
nextjs-require-cache-hot-reloader.ts Upgrade react-server-dom-webpack and precompiled assets (#41547) 2022-10-19 15:09:49 +00:00
pages-manifest-plugin.ts BREAKING CHANGE: Remove target: serverless (#41495) 2022-10-18 09:47:13 -07:00
profiling-plugin.ts Remove webpack4 types (#39631) 2022-08-16 09:55:37 +00:00
react-loadable-plugin.ts chore: remove unsless @ts-ignore (#40992) 2022-09-28 17:53:08 +00:00
subresource-integrity-plugin.ts Make sure polyfills are added for browsers without module support (#41029) 2022-09-29 16:22:21 -07:00
telemetry-plugin.ts BREAKING CHANGE: Rename next/image to next/legacy/image & rename next/future/image to next/image (#41399) 2022-10-14 01:59:22 +00:00