From 9d7900c209329682308cc1a6093f297deae43662 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 8 Nov 2021 20:16:34 +0100 Subject: [PATCH] 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` --- packages/next/lib/typescript/writeConfigurationDefaults.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/lib/typescript/writeConfigurationDefaults.ts b/packages/next/lib/typescript/writeConfigurationDefaults.ts index 18c7070050f0b..e0f75bb7acabb 100644 --- a/packages/next/lib/typescript/writeConfigurationDefaults.ts +++ b/packages/next/lib/typescript/writeConfigurationDefaults.ts @@ -38,7 +38,7 @@ function getDesiredCompilerOptions( // 'parsedValue' matches the output value from ts.parseJsonConfigFileContent() esModuleInterop: { value: true, - reason: 'requirement for babel', + reason: 'requirement for SWC / babel', }, module: { parsedValue: ts.ModuleKind.ESNext, @@ -60,7 +60,7 @@ function getDesiredCompilerOptions( resolveJsonModule: { value: true, reason: 'to match webpack resolution' }, isolatedModules: { value: true, - reason: 'requirement for babel', + reason: 'requirement for SWC / Babel', }, jsx: { parsedValue: ts.JsxEmit.Preserve,