liady / webpack-node-externals

Easily exclude node modules in Webpack
MIT License
1.3k stars 62 forks source link

Allow absolute paths in fileName #71

Closed brandon-leapyear closed 4 years ago

brandon-leapyear commented 4 years ago

:sparkles: This is an old work account. Please reference @brandonchinn178 for all future communication :sparkles:


Tested with node:

const utils = require('./utils')
utils.readFromPackageJson()
utils.readFromPackageJson({ fileName: 'package.json' })
utils.readFromPackageJson({ fileName: '/Users/bchinn/repos/webpack-node-externals/package.json' })