Skip to content
  • Sponsor plotly/react-plotly.js

  • Notifications You must be signed in to change notification settings
  • Fork 137

Commit 40dfac1

Browse files
committedSep 7, 2021
import plotly.js-dist v2 instead of v1 plotly.js/dist
1 parent 679345f commit 40dfac1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"mkdirp": "^1.0.4",
5959
"nodemon": "^2.0.6",
6060
"onetime": "^5.1.2",
61-
"plotly.js": "^1.35.0",
61+
"plotly.js-dist": "^2.0.0",
6262
"prettier": "^2.2.1",
6363
"react": "^16.13.1",
6464
"react-addons-test-utils": "^15.6.0",
@@ -69,7 +69,7 @@
6969
"uglify-js": "^3.12.1"
7070
},
7171
"peerDependencies": {
72-
"plotly.js": ">1.34.0",
72+
"plotly.js-dist": ">=2.0.0",
7373
"react": ">0.13.0"
7474
},
7575
"browserify-global-shim": {

‎src/react-plotly.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import plotComponentFactory from './factory';
2-
import Plotly from 'plotly.js/dist/plotly';
2+
import Plotly from 'plotly.js-dist';
33

44
const PlotComponent = plotComponentFactory(Plotly);
55

0 commit comments

Comments
 (0)
Please sign in to comment.