Skip to content

Commit

Permalink
fix(compatible): remove module field to compatible with lower broswer
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayZoneYour committed Mar 18, 2019
1 parent 2b57bcc commit fc46b8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "react-model",
"version": "2.5.1",
"version": "2.5.3",
"description": "The State management library for React",
"main": "./dist/react-model.js",
"module": "./dist/react-model.esm.js",
"umd:main": "./dist/react-model.umd.js",
"types": "./src/index",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion src/global.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
let State: any = {}
// Communicate between Provider-Consumer and Hooks
// Use to provide backwards-compatible.
let Setter: Setter = {
// classSetter stores the setState from Provider, invoke the classSetter.setState can update the state of Global Provider.
classSetter: undefined,
Expand Down

0 comments on commit fc46b8d

Please sign in to comment.