jrburke/r.js — Issue #116: option to remove plugin code after build
Author: millermedeiros
Created: 2012-02-24 01:20:21+00:00
State: open

It would be great if we could write the plugin code normally and just use some sort of config to replace the plugin code with a noop. Pragmas are too ugly and makes the code harder to understand.

I "never" use the text plugin after the build, the same thing happens for other plugins like [handlebars](https://github.com/SlexAxton/require-handlebars-plugin), [markdown](https://github.com/millermedeiros/requirejs-plugins/blob/master/src/mdown.js) and even the coffeescript plugin. They all use pragmas to exclude the plugin code after build which I think isn't the ideal solution.