UNPKG

unbundle

Version:

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

8 lines (6 loc) 247 B
import {resolve, relative, dirname} from 'path' import {trimBefore} from './trimBefore' export function findOutputPath (file, entry, destination) { return resolve(destination, relative(dirname(entry), file) ::trimBefore('node_modules/')) }