🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@nexus_js/vite-plugin-nexus

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexus_js/vite-plugin-nexus

Official Vite plugin for Nexus — transforms .nx files, HMR, island manifests, Server Actions

latest
Source
npmnpm
Version
0.9.32
Version published
Weekly downloads
501
-39.42%
Maintainers
1
Weekly downloads
 
Created
Source

@nexus_js/vite-plugin-nexus

Official Vite plugin for Nexus — transforms .nx files, HMR, island manifests, Server Actions.

Documentation

All guides, API reference, and examples live on nexusjs.dev.

Scoped CSS HMR (Vite dev)

When you save a .nx file that contains a <style> block, the plugin:

  • Recompiles on the server and emits a Vite custom event nexus:style-update with { hash, css, filepath }hash is componentHash(filepath) and matches [data-nx="…"] in the compiled template.
  • Injects a small client bridge (via index.html in dev) that listens on import.meta.hot and updates or appends <style data-nx-style-scope="…"> so styles can refresh without a full page reload. Runes / island state stay warm when the rest of the pipeline cooperates.

Disable automatic injection with nexus({ styleBridge: false }) and import virtual:nexus-style-bridge yourself if you prefer.

License

MIT © Nexus contributors

Keywords

nexus

FAQs

Package last updated on 10 Jun 2026

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