![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
rollup-plugin-hotreload
Advanced tools
Hot Reload plugin for Rollup.js
NOTE: the rollup-plugin-hotreload server port is 9999
:DO NOT USE localhost server port as the same as 9999
rollup.config.js
import { rph, rphMultibundles } from "rollup-plugin-hotreload";
import path from "path";
import "your_server_path"; // import your server path;
export default rphMultibundles({
//...
plugins: [
rph({
templateHtmlPath: "src/index.html", // template html path relative to rootDir
isStopRPH: false, // stop hotreload or not
rootDir: __dirname, // rootDir
rootBuildDir: "build", // build root path relative to rootDir
buildPaths: [
// first one is relative path to rootDir...
["js/index.min.js", "src/index.js"]
// as many as you want ...
]
})
]
});
your_server.js
// koa@2.6.2
import Koa from 'koa';
import koaSend from 'koa-send';
const server = new Koa();
server.use(async ctx => {
await koaSend(ctx, ctx.path, {
root: __dirname + '/build'
});
});
server.listen(3005);
export default server;
$npm install rollup-plugin-hotreload --save-dev
<script src="https://unpkg.com/rollup-plugin-hotreload">
$npm run test
$npm run build
Feel free to fork and PR
MIT
FAQs
security holding package
The npm package rollup-plugin-hotreload receives a total of 2 weekly downloads. As such, rollup-plugin-hotreload popularity was classified as not popular.
We found that rollup-plugin-hotreload demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.