Check jsx pragma or extensions for performance
Closed this issue · 2 comments
sokra commented
Only call React.transform
on .jsx
file or files with /** @jsx
.
if(/\.jsx$/.test(this.resourcePath) ||
/^\/\*\*?\s*@jsx/.test(source))
nickdima commented
Is it possible to test against source also in the config file?
lencioni commented
Since the pragma was removed in React v0.12, I think this issue can be closed.