rsnext/packages/react-refresh-utils
Alex Kirszenberg 7bbc1aec9a
Aggregate updates using addStatusHandler and Promise.resolve instead of setTimeout (#42350)
The current `setTimeout` logic adds a constant overhead of 30ms when applying updates, which slows down HMR. As @sokra suggested, we can use the `addStatusHandler` API to have the HMR runtime let us know when its status changes. This also switches to `Promise.resolve` for update aggregation.
2022-11-07 21:06:18 +00:00
..
internal Aggregate updates using addStatusHandler and Promise.resolve instead of setTimeout (#42350) 2022-11-07 21:06:18 +00:00
.gitignore Replace extra source line in webpack 5 (#14793) 2020-07-03 13:30:52 +02:00
loader.ts Add support for "type": "module" in package.json (#33637) 2022-02-15 16:24:11 +00:00
package.json v13.0.3-canary.0 2022-11-04 16:40:57 -07:00
ReactRefreshWebpackPlugin.ts the way towards webpack 5 typings (#29105) 2021-09-21 19:17:16 +02:00
README.md Update to leverage turbo for build/prepublish (#37280) 2022-05-30 19:05:27 -05:00
runtime.ts Fix Web Workers with Fast Refresh (#15145) 2020-07-14 12:17:10 -04:00
tsconfig.json feat: enable configuration of styled-components transform and enable css prop support (#37861) 2022-06-23 16:55:05 +00:00

@next/react-refresh-utils

This is an experimental package that provides utilities for React Refresh.

Its API is not stable as that of Next.js, nor does it follow semver rules.

Use it at your own risk.

Usage

All entrypoints below must wired into your build tooling for this to work.

@next/react-refresh-utils/dist/loader

@next/react-refresh-utils/dist/ReactRefreshWebpackPlugin

@next/react-refresh-utils/dist/runtime