react-cosmos-plugin-rspack
v1.0.0
Published
rspack plugin for React Cosmos
Downloads
1,217
Readme
React Cosmos rspack
plugin
Allows building / running React Cosmos using
rspack
.
Installation
Install the package:
npm install -D react-cosmos-plugin-rspack
Add the plugin to your cosmos.config.json
, e.g.:
{
"$schema": "http://json.schemastore.org/cosmos-config",
+ "plugins": ["react-cosmos-plugin-rspack"],
"dom": {
"containerQuerySelector": "#container"
}
}
Developing
The easiest way to develop is using 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