Files
Fluxup_PAP/node_modules/@expo/cli/add-module.js
2026-03-10 16:18:05 +00:00

9 lines
340 B
JavaScript

const path = require('node:path');
const { pathToFileURL } = require('node:url');
// A wrapper that allows to import an ESM module from a CJS module.
// This works because the `import` in this wrapper is not transpiled by SWC.
module.exports = function (name) {
return import(path.isAbsolute(name) ? pathToFileURL(name).href : name);
};