-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
geekact
committed
Sep 7, 2023
1 parent
62a9551
commit ad75f74
Showing
6 changed files
with
70 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
{ | ||
"env": { | ||
"targets": [ | ||
"edge >= 13", | ||
"safari >= 10", | ||
"chrome >= 49", | ||
"opera >= 36", | ||
"firefox >= 45", | ||
"ios_saf >= 10" | ||
] | ||
"jsc": { | ||
"loose": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
import { Immer } from 'immer'; | ||
import { Immer, enableES5 } from 'immer'; | ||
|
||
/** | ||
* 支持ES5,毕竟Proxy无法polyfill。有些用户手机可以10年不换!! | ||
* @link https://immerjs.github.io/immer/docs/installation#pick-your-immer-version | ||
* @since [email protected] | ||
*/ | ||
enableES5(); | ||
|
||
export const immer = new Immer({ | ||
autoFreeze: false, | ||
|