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

benchmark: convert to esm #319

Closed
wants to merge 2 commits into from

Conversation

lukekarrys
Copy link

@lukekarrys lukekarrys commented Oct 4, 2024

I was planning to benchmark #314 but ran into an issue where the benchmarks weren't running due to ERR_REQUIRE_ESM errors.

I wasn't able to get ../dist/commonjs/index.js to require without error, so this PR creates a package.json and .npmrc in the benchmarks directory so npm install can be run within that directory before the benchmarks are run.

Ended up being easier to convert to ESM. My previous solution required npm i to be run inside the directory when any local changes are made which is not ideal.

@lukekarrys lukekarrys changed the title benchmark: get cjs benchmarks to run correctly benchmark: convert to esm Oct 4, 2024
@lukekarrys
Copy link
Author

Closing in favor of #322

@lukekarrys lukekarrys closed this Oct 10, 2024
@lukekarrys lukekarrys deleted the lk/fix-benchmarks branch October 10, 2024 21:57
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.

1 participant