Skip to content

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

@christian-bromann

Description

@christian-bromann
Member

Prerequisites

  • I have read the Contributing Guidelines.
    I agree to follow the Code of Conduct.
    I have searched for existing issues that already include this feature request, without success.

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

      Participants

      @christian-bromann@sean-perkins

      Issue actions

        feat: update `moduleResolution` from `node` to `node16` or `bundler` · Issue #29716 · ionic-team/ionic-framework