-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix index.js mess in package.json #13
Comments
Hey, maybe it's due to Parcel preferring the "additional new" "exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.esm.js"
},
"./package.json": "./package.json"
} (you can give it a try before publishing by editing the package.json inside your node_modules on a test project) |
@lihbr thanks so much! I managed to fix it. I now have a build.js script that is easier to modify |
I had to fix the imports using the following additions/modifications to the
This worked for me and I'm using it as described. Does anyone have the time to test it aswell? |
I'm lost |
hey there, |
in parcel 1.x I have to
to make it work.
in vanilla node it works fine:
canvas-sketch uses browserify
const {generateRandomColorRamp} = require('fettepalette');
only returns an empty object
The text was updated successfully, but these errors were encountered: