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) 390 B
const nodePath = require('path'); module.exports = function(fromDir, lassoContext) { const lassoJsonPath = nodePath.join(fromDir, 'browser.json'); let remap; if (lassoContext.cachingFs.existsSync(lassoJsonPath)) { const lassoPackage = lassoContext.readPackageFile(lassoJsonPath); remap = lassoPackage.getRequireRemap(lassoContext); } return remap; };