\ssr-aft\node_modules\split.js\split.js:13
var global = window;
^
this is because the import statements 'aggressively' evaluate globals.
I plan to use the library within React didMount (meaning that by the time the library is needed, I will be in the browser). Because selective/dynamic imports are not yet an available feature of javascript -- these kinds of things create problems.
So wanted to check with user community of the Split.js on what they do to get this working with SSR
hello, getting error
this is because the import statements 'aggressively' evaluate globals.
I plan to use the library within React didMount (meaning that by the time the library is needed, I will be in the browser). Because selective/dynamic imports are not yet an available feature of javascript -- these kinds of things create problems.
So wanted to check with user community of the Split.js on what they do to get this working with SSR
thank you