lib/requirejs/rails/rjs_driver.js.erb in requirejs-rails-0.5.5 vs lib/requirejs/rails/rjs_driver.js.erb in requirejs-rails-0.5.6
- old
+ new
@@ -1,9 +1,9 @@
//Load the requirejs optimizer
var requirejs = require('<%= rjs_path %>'),
//Set up basic config, include config that is
//common to all the optimize() calls.
- basConfig = <%= JSON.pretty_generate(build_config) %>;
+ basConfig = <%= JSON.pretty_generate(build_config.reject {|k,v| k == 'modules'}) %>;
// Function used to mix in baseConfig to a new config target
function mix(target) {
for (var prop in basConfig) {
if (basConfig.hasOwnProperty(prop)) {