1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-14 11:59:53 +03:00

Add support for ELRS UID (#3097)

* Add support for ELRS UID

* Add Babel

* Fix review

* Fix CSS
This commit is contained in:
haslinghuis 2022-12-05 04:24:37 +01:00 committed by GitHub
parent a7b53afe13
commit 6242f1e721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 934 additions and 17 deletions

View file

@ -1101,6 +1101,11 @@ function cordova_execbrowserify(file) {
const destpath = file.replace(filename, '');
console.log(`Include required modules in ${file}`);
return browserify(file, { ignoreMissing: true })
.transform("babelify", {
presets: ["@babel/preset-env"],
sourceMaps: false,
global:true,
ignore: [/\/node_modules\/(?!md5.js\/)/] })
.bundle()
.pipe(source(filename))
.pipe(gulp.dest(destpath));