Skip to content

feat: update moduleResolution from node to node16 or bundler #29716

Open
@christian-bromann

Description

@christian-bromann

Prerequisites

Describe the Feature Request

Currently Ionic framework (@ionic/core) uses node as moduleResolution which is meant to be used with Node v10 or older. Modern code bases should use something like node16 or bundler to support export maps and other ESM features.

Describe the Use Case

I've started to work on #29715 which requires node16 due to the fact that we modernized the React Output Target code base.

Describe Preferred Solution

  • set "moduleResolution": "bundler" in /core/tsconfig.json
  • create an export map to export each component in /core/package.json

Describe Alternatives

n/a

Related Code

n/a

Additional Information

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions