forked from scala-js/jsdependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We used to embed the target URI in the file name, which generates invalid paths. This used to be fine when we used our own virtual files, whose in-memory files accepted any string as path. Since we are now using Jimfs, we need to use correct path names. We now generate file names based on the `commonJSName`. Since `commonJSName` must be a valid JavaScript identifier, it is also a valid file name (in particular, it cannot contain the characters `: ; / \`). In the unlikely event that two libraries have the same `commonJSName` (which would probably be erroneous anyway, but still), we use suffixes to generated distinct file names.
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters