-
-
Notifications
You must be signed in to change notification settings - Fork 90
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 cjs export #285
fix cjs export #285
Conversation
🦋 Changeset detectedLatest commit: de4154b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot 🎉
@@ -28,7 +28,7 @@ | |||
"bench:v8": "BABEL_ENV=test microbundle benchmarks/index.js -f modern --alias benchmarkjs-pretty=benchmarks/lib/benchmark-lite.js --external none --target node --no-compress --no-sourcemap --raw -o benchmarks/.v8.mjs && v8 --module benchmarks/.v8.mjs", | |||
"build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition", | |||
"postbuild": "node ./config/node-13-exports.js && node ./config/node-commonjs.js", | |||
"transpile": "microbundle src/index.js -f es,umd --target web --external preact", | |||
"transpile": "microbundle src/index.js -f es,cjs --target web --external preact", | |||
"transpile:jsx": "microbundle src/jsx.js -o dist/jsx.js --target web --external preact && microbundle dist/jsx.js -o dist/jsx.js -f cjs --external preact", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean we are no longer producing a build that can load in a browser? What's the bug here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's using umd globals and it seems like with the named export removed that gives some issues. Can look deeper into it though
@andrewiggins added back umd and streamlined export maps with the preact ones |
No description provided.