fix: stubs

This commit is contained in:
cha0s 2019-04-19 01:33:17 -05:00
parent 70132c838a
commit 0dd423944f

View File

@ -1,10 +1,14 @@
const Proton_ = 'undefined' !== typeof window ? require('three.proton.js') : class {
// Fake for server.
class FakeProton {
static BaseRender() {
return class {};
}
addEmitter() {}
};
update() {}
}
FakeProton.BaseRender = class {};
FakeProton.Emitter = class {};
const Proton_ = 'undefined' !== typeof window ? require('three.proton.js') : FakeProton;
export class Proton extends Proton_ {