Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 09cf6a0

Browse files
committed
Workaround/fix for build/run config not containing user config data
1 parent dd10bdb commit 09cf6a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/requirejs/rails/config.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def initialize(application)
8888
uglify
8989
uglify2
9090
useStrict
91-
wrap
91+
wrapShim
9292
}
9393
end
9494

@@ -133,6 +133,9 @@ def user_config=(cfg)
133133
if url = cfg.delete('baseUrl')
134134
raise Requirejs::ConfigError, "baseUrl is not needed or permitted in the configuration"
135135
end
136+
# delete any cached configs, will be lazily resolved
137+
self.delete(:build_config)
138+
self.delete(:run_config)
136139
self[:user_config] = cfg
137140
end
138141

0 commit comments

Comments
 (0)