Files
meteor/lib/util/meta/getRelativePath.js
Dominik Ferber 0b9622dedd fix(internal): Add locus resloving capabilities
Resolve all Meteor.isClient, Meteor.isServer and Meteor.isCordova LogicalExpressions
2015-10-13 18:42:31 +02:00

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)
}