UNPKG

unbundle

Version:

`require()` and `import`/`export` in the browser, without the bundling

16 lines (11 loc) 431 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.findOutputPath = findOutputPath; var _path = require('path'); var _trimBefore = require('./trimBefore'); function findOutputPath(file, entry, destination) { var _context; return (0, _path.resolve)(destination, (_context = (0, _path.relative)((0, _path.dirname)(entry), file), _trimBefore.trimBefore).call(_context, 'node_modules/')); }