Not that plotly would necessarily have to support JSPM, but it's also not possible to shim around the issue because there is neither a true source nor a true distribution format in the NPM package.
The package.json points to src/index.js, which relies on build/ploticon and other files in the build folder. Meanwhile, dist/plotly.js – presumably intended for distribution given the name – begins with var Plotly = require('../src/plotly'); which seems wrong.
Not that plotly would necessarily have to support JSPM, but it's also not possible to shim around the issue because there is neither a true source nor a true distribution format in the NPM package.
The
package.jsonpoints tosrc/index.js, which relies onbuild/ploticonand other files in the build folder. Meanwhile,dist/plotly.js– presumably intended for distribution given the name – begins withvar Plotly = require('../src/plotly');which seems wrong.