ionic-team / ionic-team/capacitor-os-inappbrowser

CJS import broken due to type field in package.json

Open
#61 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
13
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Dear Ionic Team,

Currently, it's not possible to import the project via CommonJS in a Typescript environment, as the `type: "module"` declaration in the `package.json` breaks the dual environments export. When `type: "module"` is set all import statements of .js files are treated as ES modules.

To fix this bug, the `type: "module"` declaration needs to be removed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.