babel-file-loader
Load files into memory to be parsed & traversed using Babylon/Babel
; { return visitor: { let file = ; filepath; } };
API
resolveFilePath{Async,Sync}(path, filePath, resolveOpts)
Resolve a filePath
relative to the file a path
belongs to. Returns string.
resolveImportFilePath{Async,Sync}(path, resolveOpts)
Resolve an import declaration path
to extract a file path. Returns string.
loadFile{Async,Sync}(filePath, parserOpts)
Load and parse a file from a filePath
. Returns File.
loadImport{Async,Sync}(path, resolveOpts, parserOpts)
Load and parse a file from an import declaration path
. Returns File.