How to skip requires?

Is there a way to tell webpack to skip a require from with in a file. Example:

index.js:

module.exports = require('foo');

/* skip the one below ???? */
module.exports = require('dont-require-this');

Author: Fantashit

4 thoughts on “How to skip requires?

  1. What the point of getting solution, tells everyone about it, but leave no explanation aboit it in comments?

Comments are closed.