You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of require() to find plugins is slightly confusing, that is, the caller passes in their own "require" function that locates the plugins, which they themselves manually require but do not assign the return value, to get picked up by browserify's static analysis. Example:
it may be more intuitive and less unnecessarily automagical although somewhat more verbose if the caller directly passed in the return value of require() for each plugin. Something like:
The use of require() to find plugins is slightly confusing, that is, the caller passes in their own "require" function that locates the plugins, which they themselves manually require but do not assign the return value, to get picked up by browserify's static analysis. Example:
it may be more intuitive and less unnecessarily automagical although somewhat more verbose if the caller directly passed in the return value of require() for each plugin. Something like:
or pass in a list of where to find each plugin, and the options still separately:
Object literals in JavaScript use string keys so we probably cannot do something along the lines of this: (at least not in ES5?)
plus then there's the problem of finding the canonical plugin name (string passed to require()).
The text was updated successfully, but these errors were encountered: