Skip to content

verbatimModuleSyntax = true switches incremental compilation to isolatedModules = true #53374

@uasan

Description

@uasan

Hello, the new option verbatimModuleSyntax has a very simple and clear description, but nothing is said here about how this option affects incremental compilation.

compilerOptions = {
  incremental: true,
  isolatedModules: false,
  verbatimModuleSyntax: true,
}

When this option is enabled, when changing a file on which other files depend (they import this file), these dependent files are not added to the set of changed files, the same effect will be if you enable the isolatedModules = true option.

I wanted to know if this is intended behavior or a bug?
Not including dependent files in the set of changed files breaks some logic in our builder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close