diff --git a/package.json b/package.json index 945785a..3a97b5e 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "react" ], "dependencies": { + "plotly.js-dist": "^2.0.0", "prop-types": "^15.7.2" }, "devDependencies": { @@ -58,7 +59,6 @@ "mkdirp": "^1.0.4", "nodemon": "^2.0.6", "onetime": "^5.1.2", - "plotly.js": "^1.35.0", "prettier": "^2.2.1", "react": "^16.13.1", "react-addons-test-utils": "^15.6.0", @@ -69,7 +69,6 @@ "uglify-js": "^3.12.1" }, "peerDependencies": { - "plotly.js": ">1.34.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);