babel / babel/grunt-babel

Only compiling files using ext once despite changes.

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
434
Forks
60
PR merge metrics
No merged PRs in 30d

Description

```json
grunt.config.merge({
babel: {
options: {
sourceMap: false,
presets: ['env']
},
dist: {
files: [{
expand: true,
cwd: '<%= env.DIR_SRC %>/assets/scripts/',
src: '**/*.js',
ext: '.cmp.js',
dest: '<%= env.DIR_SRC %>/assets/scripts/'
}]
}
},
```
This will compile the .cmp.js files, but any changes to the original js files will yeild no change until the .cmp.js files are deleted.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the Grunt Babel configuration shown in the issue and inspect how existing .cmp.js outputs are handled when source .js files change. Reproduce the behavior with the listed expand, ext, and dest settings; done means recompiling reflects source changes without manually deleting the generated files.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.