On Windows, : is not a valid character in filenames! This PR replaces it with ., which should be similarly legible but will work cross-platform.
This seems to be the only part of snowpack which didn't work on Windows -- it causes problems when setting nodePolyfill: true because it prevents the _polyfill-node:*.js files from actually being written to disk. Instead, an empty _polyfill-node was being created. Now, these files are of the form _polyfill-node.*.js.
Note that I've updated the assertion in the broken crypto test as well to match the new file names.
(Note: I initially used #, but it occurred to me that . would be much cleaner!)
On Windows,
:
is not a valid character in filenames! This PR replaces it with.
, which should be similarly legible but will work cross-platform.This seems to be the only part of snowpack which didn't work on Windows -- it causes problems when setting
nodePolyfill: true
because it prevents the_polyfill-node:*.js
files from actually being written to disk. Instead, an empty_polyfill-node
was being created. Now, these files are of the form_polyfill-node.*.js
.Note that I've updated the assertion in the broken crypto test as well to match the new file names.
(Note: I initially used
#
, but it occurred to me that.
would be much cleaner!)