Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lwc/module-resolver

Package Overview
Dependencies
Maintainers
0
Versions
797
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/module-resolver - npm Package Compare versions

Comparing version 8.11.0 to 8.12.0

2

dist/index.cjs.js

@@ -354,3 +354,3 @@ /**

exports.resolveModule = resolveModule;
/** version: 8.11.0 */
/** version: 8.12.0 */
//# sourceMappingURL=index.cjs.js.map

@@ -350,3 +350,3 @@ /**

export { RegistryType, resolveModule };
/** version: 8.11.0 */
/** version: 8.12.0 */
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ {

"name": "@lwc/module-resolver",
"version": "8.11.0",
"version": "8.12.0",
"description": "Resolves paths for LWC components",

@@ -26,2 +26,5 @@ "keywords": [

},
"volta": {
"extends": "../../../package.json"
},
"main": "dist/index.cjs.js",

@@ -28,0 +31,0 @@ "module": "dist/index.js",

@@ -47,7 +47,7 @@ # @lwc/module-resolver

- `specifier` (string, required): The module specifier to resolve.
- `importer` (string, required): The file from where the resolution starts.
- `options` (object, optional):
- `modules` (ModuleRecord[], optional, default: `[]`): Injects module records to the resolved configuration.
- `rootDir` (string, optional, default: `process.cwd()`): Use only when the `modules` option is set. Modules overrides are resolved from this directory.
- `specifier` (string, required): The module specifier to resolve.
- `importer` (string, required): The file from where the resolution starts.
- `options` (object, optional):
- `modules` (ModuleRecord[], optional, default: `[]`): Injects module records to the resolved configuration.
- `rootDir` (string, optional, default: `process.cwd()`): Use only when the `modules` option is set. Modules overrides are resolved from this directory.

@@ -58,5 +58,5 @@ **Return value:**

- `entry` (string): The absolute path of the module entry point.
- `specifier` (string): The resolved module specifier.
- `scope` (string): The absolute path from where the module has been resolved.
- `entry` (string): The absolute path of the module entry point.
- `specifier` (string): The resolved module specifier.
- `scope` (string): The absolute path from where the module has been resolved.

@@ -67,5 +67,5 @@ ## Module resolution

- [Alias module record](#alias-module-record): A file path where an LWC module can be resolved.
- [Directory module record](#directory-module-record): A folder path where LWC modules can be resolved.
- [NPM package module record](#npm-package-module-record): An NPM package that exposes one or more LWC modules.
- [Alias module record](#alias-module-record): A file path where an LWC module can be resolved.
- [Directory module record](#directory-module-record): A folder path where LWC modules can be resolved.
- [NPM package module record](#npm-package-module-record): An NPM package that exposes one or more LWC modules.

@@ -96,4 +96,4 @@ ```json

- `name` (string, required): The LWC module specifier.
- `path` (string, required): The file path to resolve.
- `name` (string, required): The LWC module specifier.
- `path` (string, required): The file path to resolve.

@@ -117,3 +117,3 @@ In this example, the `ui/button` LWC module specifier is resolved from the `src/modules/ui/button/button.js` path.

- `dir` (string, required): The directory path containing the modules.
- `dir` (string, required): The directory path containing the modules.

@@ -152,3 +152,3 @@ ```json

- `npm` (string, required): The NPM package name exposing the LWC modules.
- `npm` (string, required): The NPM package name exposing the LWC modules.

@@ -155,0 +155,0 @@ In this example, the resolver is told to look into the `@ui/components` NPM package to look up LWC modules.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc