-
Notifications
You must be signed in to change notification settings - Fork 13k
Open
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified
Description
Acknowledgement
- I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
TypeScript/src/compiler/commandLineParser.ts
Lines 843 to 849 in 3320dfd
name: "verbatimModuleSyntax", | |
type: "boolean", | |
affectsEmit: true, | |
affectsSemanticDiagnostics: true, | |
affectsBuildInfo: true, | |
category: Diagnostics.Interop_Constraints, | |
description: Diagnostics.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting, |
TypeScript/src/compiler/diagnosticMessages.json
Line 6545 in 3320dfd
"Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.": { |
It says "in the output file's format based on the 'module' setting" here, but targeting an output format that isn't ESM just gives an error, because it's 100% verbatim and won't transpile it into a require()
call.
https://www.typescriptlang.org/tsconfig/verbatimModuleSyntax.html
Metadata
Metadata
Assignees
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified