-
Notifications
You must be signed in to change notification settings - Fork 26
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
(chore) Add support for preact x #48
base: master
Are you sure you want to change the base?
(chore) Add support for preact x #48
Conversation
This will fail until preactjs/preact#1901 is merged |
This is gonna be working when preactjs/preact#1924 it's gonna get released |
Also this updates the |
Folks will be glad to have this working in X. One question still in my mind though: do we know why aliasing |
Awesome pointers! Co-Authored-By: Jason Miller <[email protected]>
Hey @developit that's a great point! Unfortunately it seems that the build size increases if I would add the imports by hand and re-export them. 🤷♂ |
@cristianbote @marvinhagemeister Any ideas on when this might be released? Would really like to upgrade to Preact X. Many thanks |
@jhdevuk it's awaiting Jason's review. It's on his todo list 👍 |
@@ -11,7 +11,7 @@ const babelRc = JSON.parse(fs.readFileSync(".babelrc")); | |||
let pkg = JSON.parse(fs.readFileSync("./package.json")); | |||
|
|||
let external = Object.keys(pkg.peerDependencies || {}).concat( | |||
Object.keys(pkg.dependencies || {}) | |||
Object.keys(pkg.dependencies || {}), 'preact/compat' |
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.
Including preact/compat completely defeats the purpose of this project, doesn't it? 😿
Ok, well, what are the alternatives? Where to get |
This adds support for
preact x
but depends on this PR frompreact
preactjs/preact#1901. After that's merged and released we could merge this one as well.Adds+3.71kB
😞 more than double it's current sizeAdds+0.89kB
😄 now we're talkingAdds
+0.98kB
🤔