Skip to content

[node-resolve] Support hashes or query params in path #486

@LarsDenBakker

Description

@LarsDenBakker
  • Rollup Plugin Name: node-resolve
  • Rollup Plugin Version: any

Feature Use Case

In the browser it's common to use hashes or query params to pass along some state. Node resolve fails to solve imports with query params or hashes.

Feature Proposal

Resolve imports with query param or hashes. For example an import such as:

import foo from 'bar/bar.js?x=y';

Should be resolved to:

import foo from '/node_modules/bar/bar.js?x=y';

I can work on a PR for this we think this feature is valueable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions