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

Add exports to package.json to satisfy nodejs --experimental-module u… #207

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Feb 14, 2022

  1. Add exports to package.json to satisfy nodejs --experimental-module u…

    …sers
    
    Fixes insidewhy#206
    This ensures that consumers using --experimental-modules with node 12+
    will import the esm version of this package.
    
    This package's export must a package.json with "type": "json" (or module
    files must have .mjs extension)...
    This package's export must also use exports field in the package.json
    because node doesn't support the "module" field as an alternative to
    "main".
    	see https://nodejs.org/api/packages.html#conditional-exports
    jamie-pate committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    12901c1 View commit details
    Browse the repository at this point in the history