MCPcopy Index your code
hub / github.com/nodejs/node / imp

Function imp

test/es-module/test-esm-windows.js:12–14  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

10const path = require('path');
11
12const imp = (file) => {
13 return import(path.relative(__dirname, file).replace(/\\/g, '/'));
14};
15
16(async () => {
17 tmpdir.refresh();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected