interlockjs / interlock

JS bundler - inspired by Git, built on Babel.
MIT License
72 stars 7 forks source link

Support Ignoring Files #26

Open baer opened 8 years ago

baer commented 8 years ago

https://github.com/substack/node-browserify#bignorefile https://webpack.github.io/docs/webpack-for-browserify-users.html#ignore

divmain commented 8 years ago

This can be implemented as a simple plugin:

return opts => override => override("readSource", module =>
  module.path === opts.path ? "module.exports = {};" : override.CONTINUE
);

We can either provide this, along with a handful of other very simple plugins, or provide the solutions "cookbook" style.