Protect all Node-specific code with NODE checks
This commit is contained in:
parent
7c7473f86e
commit
b5d6afd210
49 changed files with 362 additions and 282 deletions
|
|
@ -28,8 +28,10 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
var Web = require("../../shared/es6/weblib");
|
||||
var Component = require("../../shared/es6/component");
|
||||
if (NODE) {
|
||||
var Web = require("../../shared/es6/weblib");
|
||||
var Component = require("../../shared/es6/component");
|
||||
}
|
||||
|
||||
class State {
|
||||
/**
|
||||
|
|
@ -392,4 +394,4 @@ class State {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = State;
|
||||
if (NODE) module.exports = State;
|
||||
|
|
|
|||
Loading…
Reference in a new issue