Skip to content

Commit

Permalink
Install events library from npm
Browse files Browse the repository at this point in the history
Bundlers like vite does not automatically polyfill node modules,
functionPlot uses the events library from npm and relies on the
bundler to bundle it when needed.

The solution is to install events from npm, it has the same API
and it tells the bundler that it should install it when functionPlot
is used.
  • Loading branch information
mauriciopoppe committed Dec 10, 2023
1 parent e3dfb55 commit 46024e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Thanks to [@liuyao12](https://github.com/liuyao12) for the initial version of th
npm install function-plot
```

## Examples
## Usage

```javascript
import functionPlot from 'function-plot'
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"d3-selection": "^3.0.0",
"d3-shape": "^3.1.0",
"d3-zoom": "^3.0.0",
"events": "^3.3.0",
"interval-arithmetic-eval": "^0.5.1"
},
"devDependencies": {
Expand Down

0 comments on commit 46024e6

Please sign in to comment.