File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 55
66First, require the polyfill at the entry point of your application
77``` js
8- require ( ' regenerator-runtime/runtime' );
8+ await import ( ' regenerator-runtime/runtime.js ' );
99// or
1010import ' regenerator-runtime/runtime.js' ;
1111```
1212
1313Then
1414``` js
15- const fingertree = require ( ' @functional-data-structure/finger-tree' ) ;
15+ const fingertree = await import ( ' @functional-data-structure/finger-tree' ) ;
1616// or
1717import fingertree from ' @functional-data-structure/finger-tree' ;
1818```
Original file line number Diff line number Diff line change 2424 " tree"
2525 ],
2626 "sideEffects" : false ,
27+ "type" : " module" ,
2728 "source" : " src/index.js" ,
2829 "main" : " dist/index.cjs" ,
2930 "module" : " dist/index.module.js" ,
You can’t perform that action at this time.
0 commit comments