Skip to content

Feature request: Resolve bare module specifiers in JS modules #113

Description

@justinfagnani

This dev server would be a lot more useful for projects with client-side JS if it could resolve bare module specifiers so that they load correctly in browsers.

It's not too terribly complicated to do this with middleware and a dependency on something like enhanced-resolve. Here's a single-file implementation in my own server framework that could be adopted: https://github.com/justinfagnani/zipadee/blob/main/packages/javascript/src/lib/serve.ts

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions