try { $ = jQuery = module.exports; // If you want module.exports to be empty, uncomment: // module.exports = {}; } catch(e) {}