browserify / detective

Find all calls to require() no matter how deeply nested using a proper walk of the AST
Other
414 stars 61 forks source link

why not use the Regular Expression to find all params in require function?? #37

Closed csonlai closed 9 years ago

csonlai commented 10 years ago

why not use the Regular Expression to find all params in require function??

ArtskydJ commented 9 years ago

Because it wouldn't work on something like:

var str = "require('i do not want this required')"
zertosh commented 9 years ago

Yup.