Skip to content

Commit

Permalink
import plotly.js-dist v2 instead of v1 plotly.js/dist
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Sep 7, 2021
1 parent 679345f commit 40dfac1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"mkdirp": "^1.0.4",
"nodemon": "^2.0.6",
"onetime": "^5.1.2",
"plotly.js": "^1.35.0",
"plotly.js-dist": "^2.0.0",
"prettier": "^2.2.1",
"react": "^16.13.1",
"react-addons-test-utils": "^15.6.0",
Expand All @@ -69,7 +69,7 @@
"uglify-js": "^3.12.1"
},
"peerDependencies": {
"plotly.js": ">1.34.0",
"plotly.js-dist": ">=2.0.0",
"react": ">0.13.0"
},
"browserify-global-shim": {
Expand Down
2 changes: 1 addition & 1 deletion src/react-plotly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import plotComponentFactory from './factory';
import Plotly from 'plotly.js/dist/plotly';
import Plotly from 'plotly.js-dist';

const PlotComponent = plotComponentFactory(Plotly);

Expand Down

0 comments on commit 40dfac1

Please sign in to comment.