diff --git a/package.json b/package.json index 945785a..2f1835b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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": { diff --git a/src/react-plotly.js b/src/react-plotly.js index ac2794a..60ee933 100644 --- a/src/react-plotly.js +++ b/src/react-plotly.js @@ -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);