Conditional export of poweredup class

This commit is contained in:
Nathan Kellenicki 2019-02-06 14:21:20 -08:00
parent 5efc38b213
commit e7b5e977d9
2 changed files with 8 additions and 1 deletions

View File

@ -2,10 +2,17 @@ import { BoostMoveHub } from "./boostmovehub";
import * as Consts from "./consts";
import { DuploTrainBase } from "./duplotrainbase";
import { Hub } from "./hub";
import { PoweredUP } from "./poweredup";
import { PoweredUP as PoweredUPNode } from "./poweredup-node";
import { PUPHub } from "./puphub";
import { PUPRemote } from "./pupremote";
import { WeDo2SmartHub } from "./wedo2smarthub";
import { isBrowserContext } from "./utils";
let PoweredUP;
export default PoweredUP;
export { PoweredUP, Hub, WeDo2SmartHub, BoostMoveHub, PUPHub, PUPRemote, DuploTrainBase, Consts };
if (!isBrowserContext) {
PoweredUP = PoweredUPNode;
}