Skip to content

Commit 7806980

Browse files
authored
Merge pull request #75 from byte-fe/develop
fix(compatible): remove module field to compatible with lower broswer
2 parents 2b57bcc + fc46b8d commit 7806980

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "react-model",
3-
"version": "2.5.1",
3+
"version": "2.5.3",
44
"description": "The State management library for React",
55
"main": "./dist/react-model.js",
6-
"module": "./dist/react-model.esm.js",
76
"umd:main": "./dist/react-model.umd.js",
87
"types": "./src/index",
98
"scripts": {

src/global.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
let State: any = {}
22
// Communicate between Provider-Consumer and Hooks
3-
// Use to provide backwards-compatible.
43
let Setter: Setter = {
54
// classSetter stores the setState from Provider, invoke the classSetter.setState can update the state of Global Provider.
65
classSetter: undefined,

0 commit comments

Comments
 (0)