Open rglover opened 1 year ago
Be mindful of named exports. Could just do a import * as PackageName from 'package-name';
style set up to get around this.
You can just use the same idea you have in the testing framework for the .load()
implementation for this.
This has come up more than once. Because Joystick's rendering is isomorphic, if a third-party dependency has a browser-only dependency internally (e.g.,
navigator
) it can trigger build errors.The fix is to do a dynamic import, but code to do it is clunky:
Instead, it'd be nice if you could do...
The idea being that you remove the window check and reaching to get
.default
boilerplate.