babel / babel/grunt-babel

Multiple sources

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

Description

Hi,

I have a problem with multi source files. My configuration:
```
babel: {
options: {
minified: true
},
plugins: {
files: {
'dir/min/plugins.min.js': [
'dir/plugins.core.file.js',
'dir/plugins/*.js' // single plugin files -- IGNORED!!! Why?
]
}
}
},
```
but output (destination) file is created based only on `dir/plugins.core.file.js` and rest of sources (`dir/plugins/*.js`) are ignored.

What am I doing wrong?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the configuration with dir/plugins.core.file.js and the dir/plugins/*.js glob, then trace how the plugins.files source array is processed. Done means the generated dir/min/plugins.min.js includes both the explicitly listed file and the files matched by the glob.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.