Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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