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 |
? | ? | ? | ? | ? |
- rollupjs.org
- react error process is not defined #487
- Inheriting class via a external extended export #231
Middleware can be used to hook into a http server (e.g. express or node http).
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.