mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
import stripPathPrefix from './stripPathPrefix'
|
|
const getRootPath = require('./getRootPath')
|
|
|
|
export default function (filename) {
|
|
const rootPath = getRootPath(filename)
|
|
if (!rootPath) {
|
|
return false
|
|
}
|
|
return stripPathPrefix(rootPath, filename)
|
|
}
|