@samitouri / QOS-React-2 / commits / 6294d7aacc

Reduce unnecessary warning while including JSX transformer in browser

Cotton Hou committed Sep 5, 2014 at 07:15 UTC 6294d7aacc85b4ddc8222e6b94855423a694c9a6
1 file changed +4
vendor/browser-transforms.js
+4
@@ -312,6 +312,10 @@ function runScripts() {
312 }
313 }
314
315 + if (jsxScripts.length < 1) {
316 + return;
317 + }
318 +
319 console.warn(
320 'You are using the in-browser JSX transformer. Be sure to precompile ' +
321 'your JSX for production - ' +