Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: default exports.require should be pointed to index-compat.js #128

Merged
merged 1 commit into from
Oct 12, 2021

Conversation

jkzing
Copy link
Contributor

@jkzing jkzing commented Oct 12, 2021

In latest version the default commonjs export was changed to ./dist/index.js via this config:

  "exports": {
    ".": {
      "import": "./dist/index.mjs",
      "require": "./dist/index.js"
    },
    "./package.json": "./package.json",
    "./": "./"
  },

This breaks use case like

require('cac')()

@egoist egoist merged commit 5e07a98 into cacjs:master Oct 12, 2021
@egoist
Copy link
Collaborator

egoist commented Oct 12, 2021

🎉 This PR is included in version 6.7.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jkzing jkzing deleted the fix-main-cjs-export branch October 12, 2021 12:21
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.

2 participants