lib/middleman-react/jsx.rb in middleman-react-0.12.1 vs lib/middleman-react/jsx.rb in middleman-react-0.12.1.1

- old
+ new

@@ -14,11 +14,11 @@ 'var global = global || this;' + File.read(::React::Source.bundled_path_for('JSXTransformer.js')) @context ||= ExecJS.compile(contents) end - def transform(code) - context.call('JSXTransformer.transform', code)['code'] + def transform(code, opts = {}) + context.call('JSXTransformer.transform', code, opts)['code'] end module_function :transform end end end