Closed eric-burel closed 4 years ago
FWIW the only way you'd be seeing window
is if the build system here (I'm not familiar with it) is incorrectly following isomorphic-unfetch
's "browser"
package.json mainField.
Yeah the build was messy, I was bundling the full node_modules with webpack. I think now it works correctly but our build system is not yet mature.
https://github.com/developit/unfetch/issues/104 https://github.com/developit/unfetch/issues/122
We should either improve the typeScript/webpack build process. Switching to cross-fetch does not work, as unfetch is probably also a dependency of a subpackage.
We might need to define
window
as global variable, set to undefined, in webpack.