UNPKG

@gobstones/gobstones-scripts

Version:

Scripts to abstract away build configuration of Gobstones Project's libraries and modules.

32 lines (25 loc) 625 B
// Copied as is from identity-obj-proxy by Keyan Zhang <root@keyanzhang.com> (http://keya.nz) /* eslint-disable */ var Reflect; var idObj; function checkIsNodeV6OrAbove() { if (typeof process === 'undefined') { return false; } return parseInt(process.versions.node.split('.')[0], 10) >= 6; } if (!checkIsNodeV6OrAbove()) { Reflect = require('harmony-reflect'); } idObj = new Proxy( {}, { get: function getter(target, key) { if (key === '__esModule') { return false; } return key; } } ); module.exports = idObj;