Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Emit js/jsx files using new targetExtension API #39

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

rudi-c
Copy link
Contributor

@rudi-c rudi-c commented Jul 11, 2017

Newer versions of brunch (>2.10) have a targetExtension API which allows changing the extension of the file as it moves to the next stage of the pipeline. It's necessary to change this to .js or .jsx since that's what the Typescript compiler outputs, and otherwise it will get ignored by further stages (e.g. babel).

The targetExtension is changed based on the jsx option passed to the Typescript compiler (see https://www.typescriptlang.org/docs/handbook/jsx.html)

Also addresses #34

@rudi-c rudi-c force-pushed the master branch 2 times, most recently from c32eda8 to cd2717d Compare July 12, 2017 15:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants