On Windows, the path.join and path.dirname and path.relative calls were using \\ separators instead of / -- Node JS should always be using the latter! This caused polyfills which used relative imports, such as http-lib, to fail on Windows machines, even after patching my snowpack install to apply #24.
This solves the problem by using path.posix.join and similar.
(And apologies for all the third-party reviews, looks like my teammates are trying to embarrass me publicly.)
On Windows, the
path.join
andpath.dirname
andpath.relative
calls were using\\
separators instead of/
-- Node JS should always be using the latter! This caused polyfills which used relative imports, such ashttp-lib
, to fail on Windows machines, even after patching my snowpack install to apply #24.This solves the problem by using
path.posix.join
and similar.(And apologies for all the third-party reviews, looks like my teammates are trying to embarrass me publicly.)