
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
rollup-plugin-solid-hot-loader
Advanced tools
rollup plugin to enable hot module replacement for solid-js components
This repo will no longer be maintained as it has been made obsolete with the introduction of solid-refresh. Please go use that for you future HMR needs with solid-js as it will be actively maintained by the same developer.
A simple solid-js Hot Module Replacement loader for Rollup when used with Nollup. As this loader currently only wraps your Solid Components, it does not preserve downstream state so the Component and all of it's children will be replaced. This loader also provides basic live-reloading support for the entry file.
npm install -D rollup-plugin-solid-hot-loader
// rollup.config.js
import babel from "@rollup/plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import solidHotLoader from "rollup-plugin-solid-hot-loader";
isProduction = process.env.NODE_ENV === "production";
export default {
...,
plugins: [{
// Note: Call solidHotLoader before resolving and transpiling your code.
!isProduction && solidHotLoader({
include: ["**/path/to/components/**/*.jsx"]
}),
resolve({ extensions: [".js", ".jsx"] }),
babel({
babelHelpers: "bundled",
exclude: "node_modules/**",
presets: [ "solid" ]
})
}]
}
// package.json
{
...,
scripts: {
"start": "nollup -c --hot"
}
}
/*
The HMR Wrapping process operates on named exports starting with a capital
letter and or the default export of the file.
In the following example, it will wrap the `App` and `default` components in
order for them to properly reload without a full refresh of the page.
src/components/App/App.jsx
*/
export const App = () => {
return <div class="app">Hello World!</div>;
};
export default App;
includeType: String | RegExp | Array[...String|RegExp]
A minimatch pattern, or array of patterns, which specifies all of the Solid Component files the plugin should operate on.
FAQs
rollup plugin to enable hot module replacement for solid-js components
We found that rollup-plugin-solid-hot-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.