Closed gabegorelick closed 9 years ago
browserifyMiddleware([/* array of libs */], {noparse: true});
throws a TypeError: Arguments to path.resolve must be strings.
TypeError: Arguments to path.resolve must be strings
When noParse is true then nothing in the bundle is parsed. See https://github.com/substack/node-browserify/blob/89113a205307cae1232a12f8c183fbea83d21543/index.js#L437. Unfortunately, browserify-shim wraps noParse in an array, which browserify doesn't like, since true is not a filename.
noParse
true
Is there a reason this argument isn't passed straight through to browserify?
What happens
throws a
TypeError: Arguments to path.resolve must be strings
.What's supposed to happen
When
noParse
istrue
then nothing in the bundle is parsed. See https://github.com/substack/node-browserify/blob/89113a205307cae1232a12f8c183fbea83d21543/index.js#L437. Unfortunately, browserify-shim wrapsnoParse
in an array, which browserify doesn't like, sincetrue
is not a filename.Is there a reason this argument isn't passed straight through to browserify?