main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
271 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var IS_NODE = require('../internals/engine-is-node');
|
---|
3 |
|
---|
4 | module.exports = function (name) {
|
---|
5 | try {
|
---|
6 | // eslint-disable-next-line no-new-func -- safe
|
---|
7 | if (IS_NODE) return Function('return require("' + name + '")')();
|
---|
8 | } catch (error) { /* empty */ }
|
---|
9 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.