Added split code path based on the file extension.

Prevents transformation of non JSX files.