File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,13 @@ All methods are pure functions that do not modify their object.
36
36
> The [ parent project] ( https://github.com/aureooms/js-persistent ) shows how
37
37
> specialized persistent data structures can be build on top of those methods.
38
38
39
- > The code requires ` regeneratorRuntime ` to be defined, for instance by importing
39
+ > : warning : The code requires ` regeneratorRuntime ` to be defined, for instance by importing
40
40
> [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
41
41
42
+ First, require the polyfill at the entry point of your application
42
43
``` js
44
+ require ( ' regenerator-runtime/runtime' );
45
+ // or
43
46
import ' regenerator-runtime/runtime.js' ;
44
47
```
45
48
Original file line number Diff line number Diff line change 1
1
# Usage
2
2
3
- The code requires ` regeneratorRuntime ` to be defined, for instance by importing
4
- [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
3
+ > :warning : The code requires ` regeneratorRuntime ` to be defined, for instance by importing
4
+ > [ regenerator-runtime/runtime] ( https://www.npmjs.com/package/regenerator-runtime ) .
5
+
6
+ First, require the polyfill at the entry point of your application
5
7
``` js
6
8
require ( ' regenerator-runtime/runtime' );
7
9
// or
You can’t perform that action at this time.
0 commit comments