Conditional export of poweredup class
This commit is contained in:
parent
5efc38b213
commit
e7b5e977d9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user