petehunt/jsx-loader

Check jsx pragma or extensions for performance

Closed this issue · 2 comments

Only call React.transform on .jsx file or files with /** @jsx.

if(/\.jsx$/.test(this.resourcePath) ||
   /^\/\*\*?\s*@jsx/.test(source))

Is it possible to test against source also in the config file?

Since the pragma was removed in React v0.12, I think this issue can be closed.