Skip to content

Commit d06a1d1

Browse files
committed
Install events library from npm
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.
1 parent e3dfb55 commit d06a1d1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Thanks to [@liuyao12](https://github.com/liuyao12) for the initial version of th
3434
npm install function-plot
3535
```
3636

37-
## Examples
37+
## Usage
3838

3939
```javascript
4040
import functionPlot from 'function-plot'

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"d3-selection": "^3.0.0",
5959
"d3-shape": "^3.1.0",
6060
"d3-zoom": "^3.0.0",
61+
"events": "^3.3.0",
6162
"interval-arithmetic-eval": "^0.5.1"
6263
},
6364
"devDependencies": {

0 commit comments

Comments
 (0)