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 22The code needs a ES2015+ polyfill to work, for example
33[regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
44```js
5- require ( 'regenerator-runtime/runtime' ) ;
5+ await import ( 'regenerator-runtime/runtime.js ' ) ;
66// or
77import 'regenerator-runtime/runtime.js' ;
88```
99
1010Then
1111```js
12- const { empty , from } = require ( '@binary-search-tree/red-black-tree' ) ;
12+ const { empty , from } = await import ( '@binary-search-tree/red-black-tree' ) ;
1313// or
1414import { empty , from } from '@binary-search-tree/red-black-tree' ;
1515```
Original file line number Diff line number Diff line change 1919 "red-black tree"
2020 ],
2121 "sideEffects": false,
22+ "type": "module",
2223 "source": "src/index.js",
2324 "main": "dist/index.cjs",
2425 "module": "dist/index.module.js",
You can’t perform that action at this time.
0 commit comments