Skip to content

Latest commit

 

History

History

parcel-resolver-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Parcel Resolver React

npm: @wuespace/parcel-resolver-react

Maintainability Test Coverage GitHub Workflow Status (with branch) GitHub Node current PNPM current Twitter Follow

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.

Installation

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!

Contributing

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.

Contributors

Thank you to all contributors of this repository:

Contributors

Made with contributors-img.

About

This is part of Telestion, a project by WüSpace e.V..