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

@nx/rspack

Package Overview
Dependencies
Maintainers
4
Versions
292
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx/rspack

  • 16.0.0-beta.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24K
increased by33.17%
Maintainers
4
Weekly downloads
 
Created
Source

Nx - Smart, Fast and Extensible Build System


Nx: Smart, Fast and Extensible Build System

Nx is a next generation build system with first class monorepo support and powerful integrations.

This package is a Rspack plugin for Nx.

Getting Started

Use --preset=@nx/rspack when creating new workspace.

e.g.

npx create-nx-workspace@latest rspack-demo --preset=@nx/rspack

Now, you can go into the rspack-demo folder and start development.

cd rspack-demo
npm start

You can also run lint, test, and e2e scripts for the project.

npm run lint
npm run test
npm run e2e

Existing workspaces

You can add Rspack to any existing Nx workspace.

First, install the plugin:

npm install --save-dev @nx/rspack

Then, run the rspack-project generator:

npx nx g @nx/rspack:rspack-project --skipValidation

Note: The --skipValidation option allows you to overwrite existing build targets.

Workspace libraries

The @nx/rspack executor support importing workspace libs into the app.

npx nx g @nx/react:lib mylib

Import the new library in your app.

// src/app/app.tsx
import { Mylib } from '@rspack-demo/mylib';

// ...

export default function App() {
  return <MyLib />;
}

Now, run the dev server again to see the new library in action.

npm start

Note: You must restart the server if you make any changes to your library.

Keywords

FAQs

Package last updated on 02 May 2023

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