Open rcrezende opened 6 years ago
I'm not that familiar with babel-standalone
, and this project's distribution system wasn't really designed with it in mind but from a glance at their documentation, it seems like you need to add type="text/babel"
and possibly a data-presets
attribute to the script
tags you want babel-standalone
to process...
the above already sets the type "text/babel" and babel-standalone is already doing its thing. Problem is PivotTableUI doesn't load properly.
If you try the above code as is from any browser, you will see Plotly working fine but an exception from PivotTableUI.
Since the react-plotly component works with babel standalone, I was expecting the same for PivotTable.
Although Plotly React works properly in the browser with babel-standalone, React-pivottable throws ReferenceError: exports is not defined:
Repro: