@eggjs/utils
Advanced tools
+7
-0
@@ -287,2 +287,9 @@ import { __require } from "./_virtual/rolldown_runtime.js"; | ||
| } | ||
| const _moduleImporter = globalThis.__EGG_MODULE_IMPORTER__; | ||
| if (_moduleImporter) { | ||
| let obj$1 = await _moduleImporter(moduleFilePath); | ||
| if (obj$1 && typeof obj$1 === "object" && obj$1.default?.__esModule === true && obj$1.default && "default" in obj$1.default) obj$1 = obj$1.default; | ||
| if (options?.importDefaultOnly && obj$1 && typeof obj$1 === "object" && "default" in obj$1) obj$1 = obj$1.default; | ||
| return obj$1; | ||
| } | ||
| let obj; | ||
@@ -289,0 +296,0 @@ if (isESM) { |
+2
-2
| { | ||
| "name": "@eggjs/utils", | ||
| "version": "5.0.2-beta.12", | ||
| "version": "5.0.2-beta.13", | ||
| "description": "Utils for all egg projects", | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@eggjs/typings": "4.1.2-beta.12" | ||
| "@eggjs/typings": "4.1.2-beta.13" | ||
| }, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
34991
1.23%740
0.95%+ Added
- Removed
Updated