@lwc/module-resolver
Resolves paths for LWC components
Last updated 25 days ago by diervo .
MIT · Original npm · Tarball · package.json
$ cnpm install @lwc/module-resolver 
SYNC missed versions from official npm registry.

@lwc/module-resolver

Implements the LWC module resolver algorithm.

Installation

npm install --save-dev @lwc/module-resolver

APIs

resolveModule(specifier, importer, options)

Synchronously resolve an LWC module from its specifier.

import { resolveModule } from '@lwc/module-resolver';

const result = resolveModule('x/foo', './index.js');
console.log(result);

Parameters:

  • specifier (string, required): The module specifier that should be resolved.
  • dirname (string, required): The directory from where the specifier should be resolved.
  • options (object, optional):
    • modules (ModuleRecord[], optional, default: []): Injects module records to the resolved resolved configuration.
    • rootDir (string, optional, default: process.cwd()): Should only be used when the modules option is set. Defines from where the modules overrides should be resolved.

Current Tags

  • 1.6.9-alpha1                                ...           canary (5 days ago)
  • 1.6.2                                ...           latest (25 days ago)
  • 1.7.1                                ...           next (2 days ago)
  • 0.34.7                                ...           spring19 (a year ago)
  • 1.1.13-224.8                                ...           spring20 (4 months ago)
  • 0.37.4-220.2                                ...           summer19 (a year ago)
  • 1.3.7-226.4                                ...           summer20 (2 months ago)
  • 0.40.1-222.1                                ...           winter19 (a year ago)
  • 1.0.2-222.26                                ...           winter20 (6 months ago)

418 Versions

  • 1.7.1                                ...           2 days ago
  • 1.7.0                                ...           5 days ago
  • 1.6.9                                ...           5 days ago
  • 1.6.9-alpha1                                ...           5 days ago
  • 1.7.0-alpha1                                ...           5 days ago
  • 1.6.8                                ...           8 days ago
  • 1.6.7                                ...           11 days ago
  • 1.6.7-alpha1                                ...           11 days ago
  • 1.6.6                                ...           15 days ago
  • 1.6.6-alpha1                                ...           15 days ago
  • 1.6.5                                ...           16 days ago
  • 1.6.4                                ...           16 days ago
  • 1.16.4                                ...           16 days ago
  • 1.6.3                                ...           22 days ago
  • 1.6.3-alpha1                                ...           22 days ago
  • 1.6.2-alpha4                                ...           22 days ago
  • 1.6.2                                ...           25 days ago
  • 1.6.2-alpha3                                ...           25 days ago
  • 1.6.2-alpha2                                ...           25 days ago
  • 1.6.2-alpha1                                ...           25 days ago
  • 1.6.1                                ...           a month ago
  • 1.6.1-alpha4                                ...           a month ago
  • 1.6.1-alpha3                                ...           a month ago
  • 1.6.1-alpha2                                ...           a month ago
  • 1.6.1-alpha1                                ...           a month ago
  • 1.6.0                                ...           a month ago
  • 1.5.4                                ...           a month ago
  • 1.5.3                                ...           a month ago
  • 1.5.3-alpha5                                ...           a month ago
  • 1.5.3-alpha4                                ...           a month ago
  • 1.5.3-alpha3                                ...           a month ago
  • 1.5.2-alpha5                                ...           a month ago
  • 1.5.2-alpha4                                ...           a month ago
  • 1.5.3-alpha2                                ...           a month ago
  • 1.5.3-alpha1                                ...           a month ago
  • 1.5.2                                ...           a month ago
  • 1.5.2-alpha3                                ...           a month ago
  • 1.5.2-alpha2                                ...           2 months ago
  • 0.228.7                                ...           2 months ago
  • 0.228.7-alpha1                                ...           2 months ago
  • 0.228.7-alpha0                                ...           2 months ago
  • 0.228.6                                ...           2 months ago
  • 0.228.6-alpha0                                ...           2 months ago
  • 1.5.2-alpha1                                ...           2 months ago
  • 1.5.1                                ...           2 months ago
  • 0.228.5                                ...           2 months ago
  • 0.228.5-alpha0                                ...           2 months ago
  • 1.5.0                                ...           2 months ago
  • 1.5.0-alpha5                                ...           2 months ago
  • 1.5.0-alpha0                                ...           2 months ago
  • 1.5.0-alpha4                                ...           2 months ago
  • 1.3.7-228.4                                ...           2 months ago
  • 1.3.7-226.5-alpha3                                ...           2 months ago
  • 1.3.7-226.5-alpha2                                ...           2 months ago
  • 1.3.7-228.3                                ...           2 months ago
  • 1.3.7-228.2                                ...           2 months ago
  • 1.3.7-228.1                                ...           2 months ago
  • 1.5.0-alpha3                                ...           2 months ago
  • 1.3.7-226.5-alpha1                                ...           2 months ago
  • 1.3.7-226.4                                ...           2 months ago
  • 1.3.7-226.3                                ...           2 months ago
  • 1.3.7-226.3-alpha0                                ...           2 months ago
  • 1.4.0                                ...           2 months ago
  • 1.3.7-226.2                                ...           2 months ago
  • 1.3.7-226.1                                ...           2 months ago
  • 1.3.7-226.1-alpha1                                ...           2 months ago
  • 1.3.7-226.1-alpha0                                ...           2 months ago
  • 1.5.0-alpha2                                ...           2 months ago
  • 1.5.0-alpha1                                ...           2 months ago
  • 1.4.0-alpha3                                ...           2 months ago
  • 1.3.13-alpha1                                ...           3 months ago
  • 1.3.12                                ...           3 months ago
  • 1.3.12-alpha2                                ...           3 months ago
  • 1.3.12-alpha1                                ...           3 months ago
  • 1.4.0-alpha2                                ...           3 months ago
  • 1.4.0-alpha1                                ...           3 months ago
  • 1.3.11                                ...           3 months ago
  • 1.3.11-alpha1                                ...           3 months ago
  • 1.3.10                                ...           3 months ago
  • 1.3.9                                ...           3 months ago
  • 1.3.8                                ...           3 months ago
  • 1.3.8-alpha2                                ...           3 months ago
  • 1.3.8-alpha1                                ...           3 months ago
  • 1.3.7-226.0                                ...           3 months ago
  • 1.3.7                                ...           3 months ago
  • 1.3.7-alpha2                                ...           3 months ago
  • 1.3.7-alpha1                                ...           3 months ago
  • 1.3.6                                ...           3 months ago
  • 1.3.6-alpha4                                ...           3 months ago
  • 1.3.6-alpha3                                ...           3 months ago
  • 1.3.6-alpha2                                ...           3 months ago
  • 1.3.6-alpha1                                ...           3 months ago
  • 1.3.5                                ...           3 months ago
  • 1.3.4-alpha0                                ...           3 months ago
  • 1.3.4                                ...           3 months ago
  • 1.3.3                                ...           3 months ago
  • 1.3.3-alpha1                                ...           3 months ago
  • 1.3.2                                ...           3 months ago
  • 1.3.2-alpha1                                ...           3 months ago
  • 1.3.1                                ...           4 months ago
  • 1.3.1-alpha1                                ...           4 months ago
  • 1.3.0                                ...           4 months ago
  • 1.2.5                                ...           4 months ago
  • 1.2.5-alpha21                                ...           4 months ago
  • 1.2.5-alpha20 [deprecated]           ...           4 months ago
  • 1.2.5-alpha19 [deprecated]           ...           4 months ago
  • 1.2.5-alpha18 [deprecated]           ...           4 months ago
  • 1.2.5-alpha17 [deprecated]           ...           4 months ago
  • 1.2.5-alpha16 [deprecated]           ...           4 months ago
  • 1.2.5-alpha13 [deprecated]           ...           4 months ago
  • 1.2.5-alpha12 [deprecated]           ...           4 months ago
  • 1.2.5-alpha11 [deprecated]           ...           4 months ago
  • 1.2.5-alpha10 [deprecated]           ...           4 months ago
  • 1.2.5-alpha9 [deprecated]           ...           4 months ago
  • 1.2.5-alpha8 [deprecated]           ...           4 months ago
  • 1.2.5-alpha7 [deprecated]           ...           4 months ago
  • 1.2.5-alpha6 [deprecated]           ...           4 months ago
  • 1.2.5-alpha5 [deprecated]           ...           4 months ago
  • 1.2.5-alpha4 [deprecated]           ...           4 months ago
  • 1.2.5-alpha3 [deprecated]           ...           4 months ago
  • 1.2.5-alpha2 [deprecated]           ...           4 months ago
  • 1.2.5-alpha1 [deprecated]           ...           4 months ago
  • 1.3.0-alpha6                                ...           4 months ago
  • 1.2.4                                ...           4 months ago
  • 1.2.3                                ...           4 months ago
  • 1.3.0-alpha5                                ...           4 months ago
  • 1.3.0-alpha4                                ...           4 months ago
  • 1.3.0-alpha3                                ...           4 months ago
  • 1.2.2                                ...           4 months ago
  • 1.3.0-alpha2                                ...           4 months ago
  • 1.2.2-alpha2                                ...           4 months ago
  • 1.1.13-224.8                                ...           4 months ago
  • 1.1.13-224.8-alpha4                                ...           4 months ago
  • 1.1.13-224.8-alpha3                                ...           4 months ago
  • 1.1.13-224.8-alpha2                                ...           4 months ago
  • 1.1.13-224.8-alpha1                                ...           4 months ago
  • 1.2.2-alpha1                                ...           4 months ago
  • 1.1.13-224.7                                ...           4 months ago
  • 1.1.13-224.6                                ...           4 months ago
  • 1.1.13-224.5                                ...           4 months ago
  • 1.1.13-224.5-alpha1                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.1-alpha1                                ...           4 months ago
  • 1.3.0-alpha1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.2.0-alpha15                                ...           4 months ago
  • 1.2.0-alpha14                                ...           4 months ago
  • 1.2.0-alpha13                                ...           4 months ago
  • 1.2.0-alpha12                                ...           4 months ago
  • 1.2.0-alpha10                                ...           4 months ago
  • 1.1.17-alpha1                                ...           5 months ago
  • 1.2.0-alpha9                                ...           5 months ago
  • 1.2.0-alpha8                                ...           5 months ago
  • 1.2.0-alpha6                                ...           5 months ago
  • 1.2.0-alpha5                                ...           5 months ago
  • 1.1.16                                ...           5 months ago
  • 1.1.16-alpha2                                ...           5 months ago
  • 1.1.16-alpha1                                ...           6 months ago
  • 1.1.13-224.4                                ...           6 months ago
  • 1.1.13-224.4alpha2                                ...           6 months ago
  • 1.1.13-224.4-alpha1                                ...           6 months ago
  • 1.1.15                                ...           6 months ago
  • 1.1.15-alpha1                                ...           6 months ago
  • 1.0.2-222.26                                ...           6 months ago
  • 1.1.14                                ...           6 months ago
  • 1.0.2-222.25                                ...           6 months ago
  • 1.1.13-224.3                                ...           6 months ago
  • 1.1.14-alpha5                                ...           6 months ago
  • 1.1.14-alpha4                                ...           6 months ago
  • 1.1.14-alpha3                                ...           6 months ago
  • 1.1.14-alpha2                                ...           7 months ago
  • 1.1.13-224.2                                ...           7 months ago
  • 1.1.13-224.1                                ...           7 months ago
  • 1.1.14-alpha1                                ...           7 months ago
  • 1.1.13                                ...           7 months ago
  • 1.1.12                                ...           7 months ago
  • 1.1.12-alpha2                                ...           7 months ago
  • 1.1.12-alpha1                                ...           7 months ago
  • 1.1.11                                ...           7 months ago
  • 1.1.11-alpha2                                ...           7 months ago
  • 1.1.11-alpha1                                ...           7 months ago
  • 1.1.11-alpha                                ...           7 months ago
  • 1.1.10                                ...           7 months ago
  • 1.1.10-alpha2                                ...           7 months ago
  • 1.1.10-alpha1                                ...           7 months ago
  • 1.1.9                                ...           7 months ago
  • 1.1.9-alpha1                                ...           7 months ago
  • 1.1.8                                ...           7 months ago
  • 1.1.8-alpha1                                ...           7 months ago
  • 1.1.7                                ...           7 months ago
  • 1.1.7-alpha.0                                ...           7 months ago
  • 1.1.6                                ...           7 months ago
  • 1.1.5                                ...           8 months ago
  • 1.1.4-alpha7                                ...           8 months ago
  • 1.1.4-alpha6                                ...           8 months ago
  • 1.1.4-alpha5                                ...           8 months ago
  • 1.1.4-alpha4                                ...           8 months ago
  • 1.2.0-alpha4                                ...           8 months ago
  • 1.1.4-alpha891                                ...           8 months ago
  • 1.1.4-alpha890                                ...           8 months ago
  • 1.1.4-alpha889                                ...           8 months ago
  • 1.1.4-alpha888                                ...           8 months ago
  • 1.1.4-alpha3                                ...           8 months ago
  • 1.2.0-alpha3                                ...           8 months ago
  • 1.1.4-alpha2                                ...           8 months ago
  • 1.1.4-alpha1                                ...           8 months ago
  • 1.1.4                                ...           8 months ago
  • 1.1.3                                ...           8 months ago
  • 1.1.2-alpha1                                ...           8 months ago
  • 1.1.1                                ...           8 months ago
  • 1.1.1-alpha6                                ...           8 months ago
  • 1.1.1-alpha5                                ...           8 months ago
  • 1.1.1-alpha4                                ...           8 months ago
  • 1.2.0-alpha2                                ...           8 months ago
  • 1.2.0-alpha1                                ...           8 months ago
  • 1.1.1-alpha3                                ...           8 months ago
  • 1.1.1-alpha2                                ...           8 months ago
  • 1.1.1-alpha1                                ...           8 months ago
  • 1.1.0                                ...           8 months ago
  • 1.1.0-beta8                                ...           8 months ago
  • 1.0.2-222.24                                ...           8 months ago
  • 1.0.2-222.23                                ...           8 months ago
  • 1.1.0-beta7                                ...           8 months ago
  • 1.1.0-beta6                                ...           8 months ago
  • 1.1.0-beta5                                ...           8 months ago
  • 1.1.0-beta4                                ...           8 months ago
  • 1.1.0-beta3                                ...           8 months ago
  • 1.1.0-beta2                                ...           8 months ago
  • 1.1.0-beta1                                ...           8 months ago
  • 1.0.3-alpha.74                                ...           8 months ago
  • 1.0.3-alpha.73                                ...           8 months ago
  • 1.0.2-222.1000                                ...           8 months ago
  • 1.1.0-alpha1000                                ...           8 months ago
  • 1.0.3-beta.67                                ...           8 months ago
  • 1.0.2-test6                                ...           8 months ago
  • 1.0.2-test5                                ...           8 months ago
  • 1.0.2-test4                                ...           8 months ago
  • 1.0.2-test3                                ...           8 months ago
  • 1.0.2-test2                                ...           8 months ago
  • 1.0.2-222.22                                ...           8 months ago
  • 1.1.0-alpha19                                ...           8 months ago
  • 1.1.0-alpha18                                ...           8 months ago
  • 1.1.0-alpha17                                ...           8 months ago
  • 1.1.0-alpha16                                ...           9 months ago
  • 1.1.0-alpha15                                ...           9 months ago
  • 1.1.0-alpha14                                ...           9 months ago
  • 1.1.0-alpha13                                ...           9 months ago
  • 1.0.2-222.21-revert-test                                ...           9 months ago
  • 1.0.2-222.21                                ...           9 months ago
  • 1.0.2-222.20                                ...           9 months ago
  • 1.0.2-222.19                                ...           9 months ago
  • 1.1.0-alpha12                                ...           9 months ago
  • 1.1.0-alpha11                                ...           9 months ago
  • 1.1.0-alpha10                                ...           9 months ago
  • 1.1.0-alpha9                                ...           9 months ago
  • 1.0.2-222.18                                ...           9 months ago
  • 1.1.0-alpha8                                ...           9 months ago
  • 1.1.0-alpha7                                ...           9 months ago
  • 1.1.0-alpha6                                ...           9 months ago
  • 1.1.0-alpha5                                ...           9 months ago
  • 1.1.0-alpha4                                ...           10 months ago
  • 1.1.0-alpha3                                ...           10 months ago
  • 1.1.0-alpha2                                ...           10 months ago
  • 1.1.0-alpha1                                ...           10 months ago
  • 1.1.0-alpha0                                ...           10 months ago
  • 1.0.2-222.17                                ...           10 months ago
  • 1.0.2-222.16                                ...           10 months ago
  • 1.0.2-222.15                                ...           10 months ago
  • 1.0.2-222.14                                ...           10 months ago
  • 1.0.2-222.13                                ...           10 months ago
  • 1.0.2-222.13-alpha1                                ...           10 months ago
  • 1.0.2-222.13-alpha0                                ...           10 months ago
  • 1.0.2-222.12                                ...           10 months ago
  • 1.0.2-222.12-alpha2                                ...           10 months ago
  • 1.0.2-222.12-alpha1                                ...           10 months ago
  • 1.0.2-222.11                                ...           10 months ago
  • 1.0.2-222.10                                ...           10 months ago
  • 1.0.2-222.9                                ...           a year ago
  • 1.0.2-222.9-alpha1                                ...           a year ago
  • 1.0.2-222.9-canary                                ...           a year ago
  • 1.0.2-222.8                                ...           a year ago
  • 1.0.2-222.7                                ...           a year ago
  • 1.0.2-222.6                                ...           a year ago
  • 1.0.2-222.5                                ...           a year ago
  • 1.0.2-222.4                                ...           a year ago
  • 1.0.2-222.3                                ...           a year ago
  • 1.0.2-222.2                                ...           a year ago
  • 1.0.2-222.1                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0-alpha5                                ...           a year ago
  • 1.0.1-alpha03                                ...           a year ago
  • 1.0.0-alpha2                                ...           a year ago
  • 1.0.0-alpha.2                                ...           a year ago
  • 0.40.1-222.8                                ...           a year ago
  • 1.0.1-alpha0                                ...           a year ago
  • 0.40.1-222.7                                ...           a year ago
  • 0.40.1-222.6                                ...           a year ago
  • 0.40.1-222.5                                ...           a year ago
  • 0.40.1-222.4                                ...           a year ago
  • 0.40.1-222.3                                ...           a year ago
  • 0.40.1-222.2                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-alpha.0                                ...           a year ago
  • 0.41.0                                ...           a year ago
  • 0.40.2-alpha1                                ...           a year ago
  • 0.40.1-ekashida1                                ...           a year ago
  • 0.40.1-222.1                                ...           a year ago
  • 0.40.1                                ...           a year ago
  • 0.40.1-alpha2                                ...           a year ago
  • 0.40.1-alpha1                                ...           a year ago
  • 0.40.0                                ...           a year ago
  • 0.39.1-222.4                                ...           a year ago
  • 0.37.4-220.2                                ...           a year ago
  • 0.39.1-222.3                                ...           a year ago
  • 0.37.4-220.1                                ...           a year ago
  • 0.39.2-alpha6                                ...           a year ago
  • 0.39.1-222.2                                ...           a year ago
  • 0.39.1-222.1                                ...           a year ago
  • 0.39.2-alpha2                                ...           a year ago
  • 0.39.2-alpha5                                ...           a year ago
  • 0.39.2-alpha1                                ...           a year ago
  • 0.37.4-alpha2                                ...           a year ago
  • 0.37.4-alpha1                                ...           a year ago
  • 0.37.4                                ...           a year ago
  • 0.37.3                                ...           a year ago
  • 0.39.1                                ...           a year ago
  • 0.38.2                                ...           a year ago
  • 0.38.2-alpha1                                ...           a year ago
  • 0.39.0                                ...           a year ago
  • 0.38.1-alpha1                                ...           a year ago
  • 0.38.1                                ...           a year ago
  • 0.38.0                                ...           a year ago
  • 0.38.0-alpha3                                ...           a year ago
  • 0.38.0-alpha2                                ...           a year ago
  • 0.38.0-alpha1                                ...           a year ago
  • 0.37.3-alpha10                                ...           a year ago
  • 0.37.3-alpha9                                ...           a year ago
  • 0.37.3-alpha8                                ...           a year ago
  • 0.37.3-alpha7                                ...           a year ago
  • 0.37.3-alpha6                                ...           a year ago
  • 0.37.3-alpha5                                ...           a year ago
  • 0.37.3-alpha4                                ...           a year ago
  • 0.37.3-alpha3                                ...           a year ago
  • 0.37.3-alpha2                                ...           a year ago
  • 0.37.3-alpha                                ...           a year ago
  • 0.37.2                                ...           a year ago
  • 0.34.8                                ...           a year ago
  • 0.37.1                                ...           a year ago
  • 0.37.0                                ...           a year ago
  • 0.36.1                                ...           a year ago
  • 0.36.0                                ...           a year ago
  • 0.35.12                                ...           a year ago
  • 0.36.0-beta4                                ...           a year ago
  • 0.36.0-beta3                                ...           a year ago
  • 0.36.0-beta2                                ...           a year ago
  • 0.36.0-beta1                                ...           a year ago
  • 0.35.11-test1                                ...           a year ago
  • 0.34.7                                ...           a year ago
  • 0.35.11                                ...           a year ago
  • 0.36.0-alpha6                                ...           a year ago
  • 0.36.0-alpha5                                ...           a year ago
  • 0.35.10                                ...           a year ago
  • 0.36.0-alpha4                                ...           a year ago
  • 0.36.0-alpha3                                ...           a year ago
  • 0.36.0-alpha2                                ...           a year ago
  • 0.35.7-test1                                ...           a year ago
  • 0.36.0-alpha1                                ...           a year ago
  • 0.35.9                                ...           a year ago
  • 0.34.6                                ...           a year ago
  • 0.35.7                                ...           a year ago
  • 0.35.7-alpha4                                ...           a year ago
  • 0.35.7-alpha3                                ...           a year ago
  • 0.34.5                                ...           a year ago
  • 0.35.7-alpha2                                ...           a year ago
  • 0.34.4                                ...           a year ago
  • 0.35.6                                ...           a year ago
  • 0.35.6-alpha1                                ...           a year ago
  • 0.34.4-alpha1                                ...           a year ago
  • 0.34.3                                ...           a year ago
  • 0.35.5                                ...           a year ago
  • 0.35.5-alpha-1                                ...           a year ago
  • 0.34.2                                ...           a year ago
  • 0.34.1                                ...           a year ago
  • 0.35.4                                ...           a year ago
  • 0.35.3                                ...           a year ago
  • 0.35.2                                ...           a year ago
  • 0.33.28-5                                ...           a year ago
  • 0.33.28-4                                ...           a year ago
  • 0.33.28-3                                ...           a year ago
  • 0.33.28-2                                ...           a year ago
  • 0.35.1                                ...           a year ago
  • 0.34.0-alpha1                                ...           a year ago
  • 0.35.0                                ...           a year ago
  • 0.34.0                                ...           a year ago
  • 0.33.28-alpha5                                ...           a year ago
  • 0.33.28-alpha4                                ...           a year ago
  • 0.33.28-1                                ...           a year ago
  • 0.33.28-alpha3                                ...           a year ago
  • 0.33.28-alpha2                                ...           a year ago
  • 0.33.28-alpha1                                ...           a year ago
  • 0.33.27-alpha2                                ...           a year ago
  • 0.33.27-alpha1                                ...           a year ago
  • 0.33.26                                ...           a year ago
  • 0.33.25                                ...           a year ago
  • 0.33.24                                ...           a year ago
  • 0.33.23                                ...           a year ago
  • 0.33.22                                ...           a year ago
  • 0.33.21                                ...           a year ago
  • 0.33.20                                ...           a year ago
  • 0.33.19                                ...           a year ago
  • 0.33.18                                ...           a year ago
  • 0.33.10                                ...           a year ago
  • 0.33.14                                ...           a year ago
  • 0.33.13                                ...           a year ago
  • 0.33.17                                ...           a year ago
  • 0.33.17-alpha04                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |