Skip to content

Feature Request: Add resolvers for module named packages for offline support #1

@brion-fuller

Description

@brion-fuller

Currently, module-resolver only works for a CDN like unpkg or using alias. We should give the ability to resolve module named imports to the node_modules folder.

Example

import { LitElement, html, customElement } from "lit-element";

@customElement("hello-world")
export default class HelloWorld extends LitElement {
  render() {
    return html`<h1>Hello World</h1>`;
  }
}

This could resolve to the /base/node_modules/lit-element/lit-element.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions