MiguelCastillo / amd-resolver

Resolve module names to File objects
MIT License
0 stars 1 forks source link

Add `path` and `base` fields to match vinyl #3

Open MiguelCastillo opened 9 years ago

MiguelCastillo commented 9 years ago

https://github.com/wearefractal/vinyl#file

The idea is to hopefully use vinyl when running bit-loader on node. So, I would like to to match path and base... Currently there is a path, but it is really only the directory. And name is the name of the file. So we would just need to move path around and rename to base and make path the full path to the file.

https://github.com/MiguelCastillo/amd-resolver/blob/master/src/file.js#L130

/cc @Mark-Simulacrum