We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14fcb9d commit 90569a9Copy full SHA for 90569a9
src/shader.js
@@ -109,7 +109,7 @@ const ShaderPrototype = Object.create(Object, {
109
this._textures = {};
110
this._attributes = {};
111
let xmlhttp = null;
112
- if (typeof module !== 'undefined' && module.exports) {
+ if (typeof module !== 'undefined' && typeof require === 'function') {
113
const fs = require('fs');
114
let response = fs.readFileSync(vertexUrl, "utf8");
115
shaderlog[vertexUrl] = response;
0 commit comments