Skip to content

feat: migrate to es modules#26

Merged
kchung merged 1 commit intomasterfrom
es-modules
May 23, 2025
Merged

feat: migrate to es modules#26
kchung merged 1 commit intomasterfrom
es-modules

Conversation

@kchung
Copy link
Copy Markdown
Owner

@kchung kchung commented May 23, 2025

Fixes an issue where npx doesn't work:

Error [ERR_REQUIRE_ESM]: require() of ES Module /[omit]/node_modules/chalk/source/index.js from /[omit]/node_modules/mapkitjs-token/dist/cli.js not supported.
Instead change the require of index.js in /[omit]/node_modules/mapkitjs-token/dist/cli.js to a dynamic import() which is available in all CommonJS modules.

@kchung kchung merged commit b2b6632 into master May 23, 2025
3 checks passed
@kchung kchung deleted the es-modules branch May 23, 2025 23:37
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant