Unverified Commit 9d7900c2 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Update reason message for isolatedModules and esModuleInterop (#31150)

This is still required with SWC. The message just wasn't updated.

Fixes #31149



## 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 by running `yarn lint`
parent 283af4e6
...@@ -38,7 +38,7 @@ function getDesiredCompilerOptions( ...@@ -38,7 +38,7 @@ function getDesiredCompilerOptions(
// 'parsedValue' matches the output value from ts.parseJsonConfigFileContent() // 'parsedValue' matches the output value from ts.parseJsonConfigFileContent()
esModuleInterop: { esModuleInterop: {
value: true, value: true,
reason: 'requirement for babel', reason: 'requirement for SWC / babel',
}, },
module: { module: {
parsedValue: ts.ModuleKind.ESNext, parsedValue: ts.ModuleKind.ESNext,
...@@ -60,7 +60,7 @@ function getDesiredCompilerOptions( ...@@ -60,7 +60,7 @@ function getDesiredCompilerOptions(
resolveJsonModule: { value: true, reason: 'to match webpack resolution' }, resolveJsonModule: { value: true, reason: 'to match webpack resolution' },
isolatedModules: { isolatedModules: {
value: true, value: true,
reason: 'requirement for babel', reason: 'requirement for SWC / Babel',
}, },
jsx: { jsx: {
parsedValue: ts.JsxEmit.Preserve, parsedValue: ts.JsxEmit.Preserve,
......
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