Don't try building a %s module.

React's build tools are reading the `require("react")` and `react("%s")` inside the warning string and thinking they are actual requires.
This commit is contained in:
Daniel Friesen
2015-06-21 21:14:04 -07:00
parent df05c6efb8
commit c8d606196d
+1 -1
View File
@@ -30,7 +30,7 @@ function deprecated(fnName, newModule, ctx, fn) {
var newFn = function() {
warning(
warned,
'`require("react").%s` is deprecated. Please use `require("%s").%s` ' +
'`require' + '("react").%s` is deprecated. Please use `require' + '("%s").%s` ' +
'instead.',
fnName,
newModule,