Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Fix for usemin JS path that ignores Babel transpilation #597

Merged
merged 1 commit into from
Sep 21, 2015

Conversation

NOtherDev
Copy link
Contributor

When running grunt build, grunt-usemin builds a flow for .js files starting with scripts directory that contains not transpiled ES6 code.
The transpilation (grunt babel task) puts transpiled files into .tmp directory. It happens before the first step in js flow (concat) is run.
Thus, the transpilation works fine, but it's result is ignored and not transpiled files are used in usemin flow that ends up in target dist directory.

The fix changes the working directory where usemin starts its flow to the destination directory of Babel transpilation.

Fixes #580.

When running `grunt build`, `grunt-usemin` builds a flow for .js files starting with `scripts` directory that contains not transpiled ES6 code. 
The transpilation (`grunt babel` task) puts transpiled files into `.tmp` directory. It happens before the first step in js flow (`concat`) is run.
Thus, the transpilation works fine, but it's result is ignored and not transpiled files are used in `usemin` flow that ends up in target `dist` directory.

Fixes yeoman#580.
eddiemonge added a commit that referenced this pull request Sep 21, 2015
Fix for usemin JS path that ignores Babel transpilation
@eddiemonge eddiemonge merged commit 2384bab into yeoman:master Sep 21, 2015
@silvenon
Copy link
Member

Thanks! 👍

@La-toile-cosmique
Copy link

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building a ES2015-based app fails
4 participants