Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 40dfac1

Browse files
committed
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /