| Tweetovi |
| Jason Miller 🦊⚛ proslijedio/la je tweet | ||
|
Preact
@preactjs
|
8 h |
|
⚛️ Preact 10.3.0 is here 🧙♂️
- 🔬 Many compatibility fixes
- 💎 Devtools Profiler support
- 💡 preact/devtools is back!
- 💫 Much improved contributing guide
Release notes: git.io/JvGUc
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
7 h |
|
Currently, I believe it's best to publish something like this:
{
"main": "es5-cjs.js",
"module": "es5-modules.js",
"unpkg": "es5-umd.js",
"exports": {
".": {
"require": "modern-cjs.js",
"default": "modern-modules.js"
}
}
}
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
7 h |
|
There isn't a single definitive resource. Some useful stuff in here though:
jasonformat.com/enabling-moder…
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
8 h |
|
Lol. Took me a second.
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
19 h |
|
it's not a good metric, but one of my preferred metrics for software quality is impact per line of code. higher = better
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
19 h |
|
the hard-to-articulate but (I think) important piece here is that starting small makes it far more obvious when you cross thresholds moving away from small. When you crest 60kb base cost for the first time, a team ends up naturally considering whether that's worthwhile.
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
19 h |
|
pretty nifty subtweet ya got there
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
19 h |
|
you see into my soul anup
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
20 h |
|
do you use email?
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
23 h |
|
Nah bring it on. I'll be your first customer
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
23 h |
|
Oh, I meant for cars lol
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
24 h |
|
Booo
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
24 h |
|
Please tell me you're making a tab triager
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
24 h |
|
Used to be, now they're digital and the noise is faked.
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
2. velj |
|
no problem - that had been on my list for a while :)
I think some folks are going to wrap this up into a single `next-plugin-preact` that works without any configuration.
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
2. velj |
|
lol. I would if I used my existing Switch more
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
2. velj |
|
I've heard from a lot of folks that they want to try Next.js with Preact, but the provided example does not work.
Never fear! Here's an working one:
github.com/developit/next…
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
2. velj |
|
Alright - I just created a new example.
It's *much* simpler.
github.com/developit/next…
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
2. velj |
|
jealous that you'll have an ability to build things that you can charge for. Back when I had side projects, billing was always the thing I never got around to :(
|
||
|
|
||
|
Jason Miller 🦊⚛
@_developit
|
2. velj |
|
make sure you are using preact 10, and make sure you alias properly:
resolve: {
alias: {
react: "preact/compat",
"react-dom": "preact/compat"
}
}
|
||
|
|
||