UNPKG

lasso

Version:

Lasso.js is a build tool and runtime library for building and bundling all of the resources needed by a web application

14 lines (10 loc) 384 B
var nodePath = require('path'); module.exports = function(fromDir, lassoContext) { var lassoJsonPath = nodePath.join(fromDir, 'browser.json'); var remap; if (lassoContext.cachingFs.existsSync(lassoJsonPath)) { var lassoPackage = lassoContext.readPackageFile(lassoJsonPath); remap = lassoPackage.getRequireRemap(lassoContext); } return remap; };