src/components/custom-plotly.js
// in custom-plotly.js
import Plotly from 'plotly.js/lib/core'
// Load in the trace types for pie, and choropleth
Plotly.register([
require('plotly.js/lib/scatter'),
require('plotly.js/lib/bar'),
require('plotly.js/lib/heatmap')
]);
export default Plotly