kthjm / mw-bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

misao writing about bundle

Remove unnecessary code use in Next.js #2421

name type base zero-config entry hmr
webpack dynamic .js ✔️
rollup static .js
parcel dynamic ✔️ .html ✔️
poi dynamic webpack ✔️ .js react-hot-loader
microbundle static rollup ✔️ .js
prepack ? ? ? ? ?

webpack

rollup

parcel

Middleware can be used to hook into a http server (e.g. express or node http).

poi

microbundle

Hmm - it seems a pity to have to add configuration just because React isn't exporting things properly...

For browsers u dont need this. Just use process.env.NODE_ENV checks, do not replace them before publishing and let consumers' bundlers do that.

prepack

About


Languages

Language:JavaScript 87.7%Language:HTML 12.3%