Skip to content

Update default tsconfig.json options #26290

@dgp1130

Description

@dgp1130

Command

new, update

Description

It's been a while since we've looked at recent TypeScript configuration changes and refreshed the default Angular setup. We should review recent additions and changes to look for anything we want to enable in ng new as well as through ng update for existing apps.

Two options in particular which stand out:

  • moduleResolution: 'bundler' - This seems appropriate given our esbuild / Webpack usage.
  • allowSyntheticDefaultImports: true - I believe this is recommended by the TypeScript team.
  • esModuleInterop: true - This is highly recommended for our esbuild setup and maybe we should just make it the default.

We don't need to be specifically limited to these three options, but those are the immediate ones to consider.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions