mirror of https://github.com/embarklabs/embark.git
rev entry
This commit is contained in:
parent
bfeee5eb4d
commit
48e67973cf
|
@ -47,15 +47,16 @@ try {
|
|||
versions = [];
|
||||
}
|
||||
|
||||
const entry = Object.keys(embarkAssets).reduce((obj, key) => {
|
||||
embarkAssets[key]
|
||||
.filter(file => file.filename.match(/\.jsx?$/))
|
||||
.forEach(file => {
|
||||
const entry = Object.keys(embarkAssets)
|
||||
.filter(key => key.match(/\.js?$/))
|
||||
.reduce((obj, key) => {
|
||||
obj[key] = embarkAssets[key]
|
||||
.map(file => {
|
||||
let file_path = file.path;
|
||||
if (!file.path.match(/^\.\//)) {
|
||||
file_path = './' + file_path;
|
||||
}
|
||||
obj[file.path] = file_path;
|
||||
return file_path;
|
||||
});
|
||||
return obj;
|
||||
}, {});
|
||||
|
|
Loading…
Reference in New Issue