Unverified Commit 47a905b8 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Invalidate webpack cache when swc options are enabled/disabled (#29497)



Ensures webpack caching is invalidated when switching between SWC on/off.

## 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
parent df6df195
...@@ -1497,6 +1497,8 @@ export default async function getBaseWebpackConfig( ...@@ -1497,6 +1497,8 @@ export default async function getBaseWebpackConfig(
hasRewrites, hasRewrites,
reactRoot: config.experimental.reactRoot, reactRoot: config.experimental.reactRoot,
concurrentFeatures: config.experimental.concurrentFeatures, concurrentFeatures: config.experimental.concurrentFeatures,
swcMinify: config.experimental.swcMinify,
swcLoader: config.experimental.swcLoader,
}) })
const cache: any = { const cache: any = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment