Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@istanbuljs/load-nyc-config/load-esm.js')
-rw-r--r--node_modules/@istanbuljs/load-nyc-config/load-esm.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/node_modules/@istanbuljs/load-nyc-config/load-esm.js b/node_modules/@istanbuljs/load-nyc-config/load-esm.js
deleted file mode 100644
index 0eb517e6b..000000000
--- a/node_modules/@istanbuljs/load-nyc-config/load-esm.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-const {pathToFileURL} = require('url');
-
-module.exports = async filename => {
- const mod = await import(pathToFileURL(filename));
- if ('default' in mod === false) {
- throw new Error(`${filename} has no default export`);
- }
-
- return mod.default;
-};