@lwc/module-resolver
Advanced tools
Comparing version 6.1.1 to 6.2.0
@@ -89,3 +89,3 @@ /** | ||
} | ||
return isDirModuleRecord(m) ? Object.assign(Object.assign({}, m), { dir: path.resolve(rootDir, m.dir) }) : m; | ||
return isDirModuleRecord(m) ? { ...m, dir: path.resolve(rootDir, m.dir) } : m; | ||
}); | ||
@@ -163,3 +163,2 @@ return { | ||
function getLwcConfig(dirname) { | ||
var _a; | ||
const packageJsonPath = path.resolve(dirname, PACKAGE_JSON); | ||
@@ -171,3 +170,4 @@ const lwcConfigPath = path.resolve(dirname, LWC_CONFIG_FILE); | ||
else { | ||
return (_a = require(packageJsonPath).lwc) !== null && _a !== void 0 ? _a : {}; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
return require(packageJsonPath).lwc ?? {}; | ||
} | ||
@@ -329,3 +329,3 @@ } | ||
exports.resolveModule = resolveModule; | ||
/** version: 6.1.1 */ | ||
/** version: 6.2.0 */ | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -85,3 +85,3 @@ /** | ||
} | ||
return isDirModuleRecord(m) ? Object.assign(Object.assign({}, m), { dir: path.resolve(rootDir, m.dir) }) : m; | ||
return isDirModuleRecord(m) ? { ...m, dir: path.resolve(rootDir, m.dir) } : m; | ||
}); | ||
@@ -159,3 +159,2 @@ return { | ||
function getLwcConfig(dirname) { | ||
var _a; | ||
const packageJsonPath = path.resolve(dirname, PACKAGE_JSON); | ||
@@ -167,3 +166,4 @@ const lwcConfigPath = path.resolve(dirname, LWC_CONFIG_FILE); | ||
else { | ||
return (_a = require(packageJsonPath).lwc) !== null && _a !== void 0 ? _a : {}; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
return require(packageJsonPath).lwc ?? {}; | ||
} | ||
@@ -325,3 +325,3 @@ } | ||
export { RegistryType, resolveModule }; | ||
/** version: 6.1.1 */ | ||
/** version: 6.2.0 */ | ||
//# sourceMappingURL=index.js.map |
@@ -7,3 +7,3 @@ { | ||
"name": "@lwc/module-resolver", | ||
"version": "6.1.1", | ||
"version": "6.2.0", | ||
"description": "Resolves paths for LWC components", | ||
@@ -10,0 +10,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57785