Skip to content

fix: ts esm types (close #173) - #174

Closed
Mister-Hope wants to merge 1 commit into
developit:mainfrom
Mister-Hope:main
Closed

Mister-Hope wants to merge 1 commit into
developit:mainfrom
Mister-Hope:main

Conversation

@Mister-Hope

Copy link
Copy Markdown
Contributor

No description provided.

@Mister-Hope

Copy link
Copy Markdown
Contributor Author

@developit Could you please review this pr and publish a 3.0.1 soon? I am patching this package for quite a long time.

Comment thread package.json
Comment on lines +5 to 7
"type": "module",
"module": "dist/mitt.mjs",
"main": "dist/mitt.js",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incorrect and not viable (on its own). Setting the package type to "module" means all of those .js files will be treated as ESM when they're CJS.

@Mister-Hope Mister-Hope closed this Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ Proxy