How to read a local csv file without using the deprecated Plotly.d3.csv()

It seems that " Plotly.d3 object was removed from version >2 (at least according to this announcement )." (link)

So, how to read local csv file stored at, say …/static/data folder? (using Plotly.js via npm installation)

Thanks.