1.0.0 • Published 1 year ago
react-cosmos-plugin-rspack v1.0.0
React Cosmos rspack plugin
Allows building / running React Cosmos using
rspack.
Installation
Install the package:
npm install -D react-cosmos-plugin-rspackAdd 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 publishThen in your project that is using React Cosmos run:
yalc add react-cosmos-plugin-rspack