Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit js/jsx files using new targetExtension API #39

merged 1 commit into from Aug 21, 2017


Copy link

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

Also addresses #34

@rudi-c rudi-c force-pushed the rudi-c:master branch 2 times, most recently from c32eda8 to cd2717d Jul 12, 2017
@rudi-c rudi-c force-pushed the rudi-c:master branch from cd2717d to 9c3a3b1 Jul 13, 2017
@shvaikalesh shvaikalesh merged commit 7e99449 into brunch:master Aug 21, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.