Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa4426f

Browse files
author
Sebastian Wojtowicz
committed
[BUGFIX] fix Cannot read property 'document' of undefined
When plotly.js is loaded in Chrome by the native ES6 import, the loading crashes with Cannot read property 'document' of undefined The problem is that the bundler assumes that when a function is executed without any this, the this will automatically be set to window. This is not the case with ES6 modules, where this will be undefined.
1 parent 37e80cb commit fa4426f

File tree

1 file changed

+2850
-2850
lines changed

1 file changed

+2850
-2850
lines changed

0 commit comments

Comments
 (0)