-
Notifications
You must be signed in to change notification settings - Fork 239
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
Use .js extension for build outputs #927
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit acbe109:
|
Codecov Report
@@ Coverage Diff @@
## main #927 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 85 85
Lines 1785 1785
Branches 641 641
=========================================
Hits 1785 1785 Continue to review full report at Codecov.
|
First of all: Thanks for taking the time to contribute to this library. The package.json does not have a |
Ah, ok - good point. I was thinking of this in terms of Webpack, which will use either the |
…should use ES modules
Sounds as if it should work. But the current export should work too. |
I pulled the build from @ph-fritsche (note: it is a compressed .zip file without extension, so you might have to manually add the So far, it is the only thing that has worked for me to solve the I'm using all the latest packages (as of today): "@testing-library/dom": "8.13.0",
"@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "13.2.0",
"@testing-library/user-event": "14.2.0", |
Any news? |
closed in favor of #949 |
What:
Fixes #839 by separating the ESM build and CommonJS builds into different directories, instead of using
.cjs
and.mjs
extensions.Why:
Some build tools don't work well with the
.cjs
/.mjs
extensions, so using a.js
extension is more compatible. Users with existing tooling setup for.js
don't need to update their configurations to work with the new extensions.How:
The entry points in
package.json
were changed to useindex.js
with the ESM build using anesm/
directory. Thebuild.js
script now tellsesbuild
to put the files in the appropriate space with the.js
extension.Checklist: