Home
last modified time | relevance | path

Searched refs:createRequire (Results 1 – 19 of 19) sorted by relevance

/third_party/node/test/parallel/
Dtest-module-create-require.js7 const { createRequire, createRequireFromPath } = require('module');
15 const reqToo = createRequire(u);
19 createRequire('https://github.com/nodejs/node/pull/27405/');
25 createRequire('../');
31 createRequire({});
Dtest-no-addons-resolution-condition.js7 const { createRequire } = require('module');
9 const loadFixture = createRequire(fixtures.path('node_modules'));
/third_party/node/test/common/
Dindex.mjs1 import { createRequire } from 'module';
3 const require = createRequire(import.meta.url);
98 createRequire
/third_party/node/test/fixtures/
Dpkgexports.mjs2 import { createRequire } from 'module';
4 const rawRequire = createRequire(fileURLToPath(import.meta.url));
/third_party/node/test/fixtures/es-module-loaders/
Dloader-with-dep.mjs1 import {createRequire} from '../../common/index.mjs';
3 const require = createRequire(import.meta.url);
Dloader-shared-dep.mjs3 import {createRequire} from '../../common/index.mjs';
5 const require = createRequire(import.meta.url);
/third_party/node/test/es-module/
Dtest-esm-require-cache.mjs1 import { createRequire } from '../common/index.mjs';
4 const require = createRequire(import.meta.url);
Dtest-esm-shared-loader-dep.mjs2 import { createRequire } from '../common/index.mjs';
7 const require = createRequire(import.meta.url);
Dtest-esm-json-cache.mjs6 import { createRequireFromPath as createRequire } from 'module';
13 const require = createRequire(fromURL(import.meta.url));
/third_party/node/doc/api/
Dmodule.md44 ### `module.createRequire(filename)`
55 import { createRequire } from 'module';
56 const require = createRequire(import.meta.url);
68 > Stability: 0 - Deprecated: Please use [`createRequire()`][] instead.
217 [`createRequire()`]: #module_module_createrequire_filename
Dembedding.md155 // `module.createRequire()` is being used to create one that is able to
161 " require('module').createRequire(process.cwd() + '/');"
Desm.md430 [`module.createRequire()`][].
452 Alternatively `module.createRequire()` can be used.
458 They can instead be loaded with [`module.createRequire()`][] or
468 Alternatively `module.createRequire()` can be used.
825 its own `require` using `module.createRequire()`.
836 const { createRequire } = getBuiltin('module');
838 const require = createRequire(process.cwd() + '/<preload>');
1383 [`module.createRequire()`]: module.md#module_module_createrequire_filename
Dmodules.md992 …ename" href="module.html#module_module_createrequire_filename">`module.createRequire(filename)`</a>
Ddeprecations.md2372 [`module.createRequire()`][] instead.
2732 [`module.createRequire()`]: module.md#module_module_createrequire_filename
/third_party/node/test/doctool/
Dtest-doctool-json.mjs6 import { createRequire } from 'module';
10 const require = createRequire(new URL('../../tools/doc/', import.meta.url));
Dtest-doctool-html.mjs6 import { createRequire } from 'module';
11 const require = createRequire(new URL('../../tools/doc/', import.meta.url));
/third_party/node/lib/internal/modules/cjs/
Dloader.js1174 function createRequire(filename) { function
1193 Module.createRequire = createRequire;
/third_party/node/doc/changelogs/
DCHANGELOG_V12.md1325 * [[`25c8a13fde`](https://github.com/nodejs/node/commit/25c8a13fde)] - **doc**: createRequire can t…
3163 …https://github.com/nodejs/node/commit/55fe340dc2)] - **doc**: improve createRequire() example (cji…
3210 …s://github.com/nodejs/node/commit/c33e83497e)] - **module**: simplify createRequire() validation (…
3288 * Added the `createRequire()` method. It allows to create a require function
3335 …/nodejs/node/commit/5bcd7700ca)] - **(SEMVER-MINOR)** **module**: add createRequire method (Myles …
DCHANGELOG_V13.md1569 * [[`7e603bed52`](https://github.com/nodejs/node/commit/7e603bed52)] - **doc**: createRequire can t…
1889 * `module.createRequireFromPath()` is deprecated. Use `module.createRequire()`