Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/birchill/react-cosmos-plugin-rspack
React cosmos plugin for rspack
https://github.com/birchill/react-cosmos-plugin-rspack
cosmos react rspack
Last synced: about 1 month ago
JSON representation
React cosmos plugin for rspack
- Host: GitHub
- URL: https://github.com/birchill/react-cosmos-plugin-rspack
- Owner: birchill
- Created: 2024-01-08T12:42:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T01:54:13.000Z (5 months ago)
- Last Synced: 2024-12-01T06:02:26.194Z (about 1 month ago)
- Topics: cosmos, react, rspack
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/react-cosmos-plugin-rspack
- Size: 1.15 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-rspack - react-cosmos-plugin-rspack
README
# React Cosmos `rspack` plugin
Allows building / running React Cosmos using
[`rspack`](https://www.rspack.dev/).## Installation
Install the package:
```
npm install -D react-cosmos-plugin-rspack
```Add the plugin to your `cosmos.config.json`, e.g.:
```diff
{
"$schema": "http://json.schemastore.org/cosmos-config",
+ "plugins": ["react-cosmos-plugin-rspack"],
"dom": {
"containerQuerySelector": "#container"
}
}
```## Developing
The easiest way to develop is using [`yalc`](https://github.com/wclr/yalc).
Install it globally and then from this repo do:
```
yalc publish
```Then in your project that is using React Cosmos run:
```
yalc add react-cosmos-plugin-rspack
```