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

Drop just-performance, ttypescript, use *.js imports, create cjs/esm package.json files, bump deps #96

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

jhurliman
Copy link
Owner

@jhurliman jhurliman commented Apr 20, 2024

This is an alternative to #92 that drops the just-performance dependency in favor of directly using performance (available in node global namespace since 16.x) and adds a create-package-json.js script that outputs package.json files with type commonjs/module into the dist/cjs and dist/esm output folders. The imports have been changed to use a .js extension to make this library compatible with node.js >=16.x, bundlers such as webpack, or directly in the browser using ESM.

Fixes #80, #93.

@jhurliman jhurliman merged commit a9e0da1 into main Apr 25, 2024
1 check passed
@jhurliman jhurliman deleted the jhurliman/esm-type-module branch April 25, 2024 23:05
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.

Importing from esm in Node.js is broken in v2.1.0
1 participant