1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-06 08:47:58 +02:00
This commit is contained in:
Pomax
2017-03-26 11:24:40 -07:00
parent d4b8dcd396
commit 6fcf9c9378
11 changed files with 3813 additions and 192 deletions

11
tools/lib/jsx-shim.js Normal file
View File

@@ -0,0 +1,11 @@
// shim nodejs so that it "knows" what to do with jsx files:
// namely just return empty objects.
var Module = require('module');
var originalRequire = Module.prototype.require;
Module.prototype.require = function() {
try {
return originalRequire.apply(this, arguments);
} catch (e) {
return {};
}
};