Open adamjanicki2 opened 4 months ago
Name | Link |
---|---|
Latest commit | cbb78679356927049c913fbebfecd480477f8957 |
Latest deploy log | https://app.netlify.com/sites/treecle/deploys/662e3678c31a8300087e96e9 |
Deploy Preview | https://deploy-preview-32--treecle.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
We don't need an index.js
for this, just certain package.json fields (main
, exports
, not sure if there are others that are relevant).
We don't need an
index.js
for this, just certain package.json fields (main
,exports
, not sure if there are others that are relevant).
Got it, currently the relevant fields are set to
"main": "./dist/treecle.cjs",
"module": "./dist/treecle.js",
I think the issue is the build is outputting a file called treecle.cjs.js
, so the target for main
is off. Is the correct fix to change the package to "main": "./dist/treecle.cjs.js"
, or to adjust the rollup config so that it names the file treecle.cjs
?
Currently, to import Treecle via ESM, after npm installing, you have to write
but it would be nice if you could just do
so this fix just adds an
index.js
to the outputdist
directory so that you can do that