npm: @wuespace/parcel-resolver-react
Parcel Resolver that overrides any imports of React.js to include React only once and in one version only. This prevents React from failing with the Invalid Hook Call Warning.
Note: This plugin is only active if you're using a workspace linked project.
If you're using
the @wuespace/telestion-client-template
the
plugin is already installed and integrated in Parcel.
If that's not the case, install the plugin as development dependency:
pnpm add -D @wuespace/parcel-resolver-react
# or
npm install --save-dev @wuespace/parcel-resolver-react
Then add it to your .parcelrc
configuration:
{
"resolvers": ["@wuespace/parcel-resolver-react", "..."]
}
That's it!
If you want to contribute to this package, please take a look at the Telestion Client monorepo that manages this package, among other Telestion Client packages.
Thank you to all contributors of this repository:
Made with contributors-img.
This is part of Telestion, a project by WüSpace e.V..