first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
9
node_modules/core-js/internals/try-node-require.js
generated
vendored
Normal file
9
node_modules/core-js/internals/try-node-require.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
var IS_NODE = require('../internals/engine-is-node');
|
||||
|
||||
module.exports = function (name) {
|
||||
try {
|
||||
// eslint-disable-next-line no-new-func -- safe
|
||||
if (IS_NODE) return Function('return require("' + name + '")')();
|
||||
} catch (error) { /* empty */ }
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue