This is an example for this plugin use with React HMR.
- Run
yarn
to install dependencies - Run
yarn start
(orstart-rspack
) - Open Chrome, install the demo extension from the dist/ folder.
- Open http://example.com/, You can see a React UI.
- Change ./src/shared/message.tsx and see HMR happens.
- Open the options page of this extension (right click on the extension to open the menu).
- The same UI rendered in the chrome-extension:// protocol also gets HMR.