Comments (3)
I just pushed v1.1.0 which has CommonJS support, let me know if that worked, I'm not an expert at CJS/ESM and ChatGPT helped lol 😄
from polybool.
Oh wow, thanks for that! I just got around to checking my notifications, so I'll give it a try and let you know how it goes.
from polybool.
@velipso, sorry, no luck. It doesn't work for 2 reasons that I can tell (and I may be wrong here!):
- The
@velipso/polybool
package.json file has"type": "module"
-- AFAIK, typically you'd need a separatedist/cjs/package.json
file with"type": "commonjs"
in it to enable CommonJS usage. - The
exports
field is incorrect --"require": "./dist/polybool.cjs.js"
should be"require": "./dist/polybool.cjs"
, since that's what's actually in thedist
dir.
I can't lie to you, publishing hybrid (ESM + CJS) TypeScript packages is tough to get right.
If you're interested in getting it working properly, you should have a look at tshy. And if you want to go even further down that rabbit hole, @arethetypeswrong/cli should drive you sufficiently mad within hours.
from polybool.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polybool.