Skip to content

React 16 Support + Fix NPM links - #2

Open
gingur wants to merge 2 commits into
rough-stuff:mainfrom
gingur:main
Open

gingur wants to merge 2 commits into
rough-stuff:mainfrom
gingur:main

Conversation

@gingur

@gingur gingur commented Jun 24, 2021 •

Copy link
Copy Markdown

Move react to peerDependency

Specifying react as a dependency can cause multiple versions of React to be present in a single consumer build if there is a semver mismatch and npm/yarn is unable to dedupe.

Support react@16

AFAIK this library works just fine on react@16, so specifying a semver range that includes 16.

Fix npm links

The links specified in package.json were pointing to a non-existing repository on https://www.npmjs.com/package/wired-elements-react

Add sideEffects

Specifying "sideEffects": false in the package.json will enable bundlers like webpack to tree-shake the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants