Implement the "noParse" matcher via mdeps "parseFilter" #1256
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A proposal based on the discussion in browserify/module-deps#54 (comment). Depends on browserify/module-deps#87. don't merge this - the package.json is point to my module-deps branch for this
Currently the logic for determining whether to parse for deps or not lives in module-deps. Browserify passes an array of absolute paths to module-deps, and module-deps does a straight
indexOf
against it. A couple of things feel off about this:fileFilter
function (idc about the name) for use by a newparseFilter
available in module-deps.parseFilter
) follows in the footsteps ofpostFilter
,filter
andpackageFilter
.Things that "break":
b.require('thing', {noparse: true});
- that wouldn't work anymore.cmd.js
.Follow ups:
fileFilter
, mostly taken from the globals transform is broken - PR coming soon.noParse
doesn't have any tests. About half of the ones here fail against master (bc of new functionality). I'll make a separate PR for the passing ones, so this change doesn't introduce currently unknown regressions.@jmm @terinjokes
@substack <-- I don't know if you like being tagged on these things or not