Bug: Snowpack fails to build files with names containing dollar sign ($) #1938
crazytoucan
started this conversation in
General
Replies: 1 comment
-
Definitely an edge case, but would love a PR to fix if you're interested in debugging to find out why this is. Maybe some regex is stripping these special characters? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all, really love the direction of snowpack and the new v3. Unfortunately, I hit a small snag where I'm not allowed to have file names ending in dollar signs ($):
When running index.ts under a standard snowpack dev bundle via an html file, the above throws with the following error in the browser console:
and in the
snowpack dev
process output:It looks like the above is searching for the file named "test", instead of the correct name "test$". Renaming the file to omit the dollar sign (and updating the import) works. The above setup also builds fine under
tsc
andwebpack
.Thanks for your help! While I understand the "just rename your files" "fix," I would really like to use file names that correspond to the symbols in them, and some of the libraries I'm using actually recommend that symbols of certain types end in dollar signs.
EDIT: The above observations all hold true with the dollar sign appearing anywhere in the file name (so this isn't unique to the "end" of the basename). I've updated the title accordingly
Beta Was this translation helpful? Give feedback.
All reactions