Skip to content

Commit

Permalink
😒 chore(dev-deps): Dump @babel/polyfill.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Aug 9, 2020
1 parent 725f1ad commit 0381b41
Show file tree
Hide file tree
Showing 4 changed files with 540 additions and 902 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Fibonacci heap data structure for JavaScript.
See [docs](https://aureooms.github.io/js-fibonacci-heap/index.html).
Parent is [@aureooms/js-heap](https://github.com/aureooms/js-heap).

> :warning: The code needs a ES2015+ polyfill to run (`regeneratorRuntime`),
> for instance [@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
> :warning: The code requires `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
```js
let heap = new FibonacciHeap( compare.increasing ) ;
Expand Down
8 changes: 4 additions & 4 deletions doc/manual/usage.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Usage

> :warning: The code needs a ES2015+ polyfill to run (`regeneratorRuntime`),
> for instance [@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
> :warning: The code requires `regeneratorRuntime` to be defined, for instance by importing
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
First, require the polyfill at the entry point of your application
```js
require( '@babel/polyfill' ) ;
require( 'regenerator-runtime/runtime' );
// or
import '@babel/polyfill' ;
import 'regenerator-runtime/runtime.js' ;
```

Then, import the library where needed
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test/src/**/*"
],
"require": [
"@babel/polyfill",
"regenerator-runtime/runtime",
"@babel/register"
],
"timeout": "1m"
Expand All @@ -17,9 +17,6 @@
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-proposal-async-generator-functions"
],
"env": {
"development": {
"sourceMaps": "inline"
Expand All @@ -36,8 +33,6 @@
"@aureooms/js-heap-spec": "15.0.3",
"@babel/cli": "7.10.5",
"@babel/core": "7.11.1",
"@babel/plugin-proposal-async-generator-functions": "7.10.5",
"@babel/polyfill": "7.10.4",
"@babel/preset-env": "7.11.0",
"@babel/register": "7.10.5",
"ava": "3.11.1",
Expand All @@ -49,6 +44,7 @@
"esdoc-standard-plugin": "1.0.0",
"np": "6.3.2",
"nyc": "15.1.0",
"regenerator-runtime": "0.13.7",
"xo": "0.32.1"
},
"files": [
Expand Down
Loading

0 comments on commit 0381b41

Please sign in to comment.