New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

solid-refresh

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-refresh

Universal HMR for SolidJS

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64K
decreased by-19.86%
Maintainers
1
Weekly downloads
 
Created
Source

Solid Refresh

This project aims to provide HMR for Solid for various bundlers. It comes with a babel plugin and a runtime. Over time I hope to add different bundlers. Today it supports:

  • Webpack

  • Parcel

  • Rollup/Nollup (need to confirm)

  • Vite (with option bundler: "esm")

  • Snowpack (with option bundler: "esm", need to confirm)

How it works

The babel plugin will transform files with .jsx or .tsx extensions with default exports (assuming they are component files) to wrap the default export with createMemo call so component can be swapped at will.

Today we don't preserve state below the change.

On a per file basis, use comments at top of file to opt out(change moves up to parent):

/* @refresh skip */

Or force reload:

/* @refresh reload */

FAQs

Package last updated on 17 Jul 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc