Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Respect package.json alias section when resolving dependencies #2568

Open
schlichtanders opened this issue Mar 29, 2024 · 0 comments

Comments

@schlichtanders
Copy link

As discussed in #2564 current jspm is not able to treat alias definitions correctly.

It would be best, if jspm simply respects the alias definition from package.json so that the npm dependencies and the jspm dependencies match each other.

Importantly, alias my be such that a package on the one hand is aliased to a subpackage on the other hand. Or package to package, or subpackage to subpackage.

For instance for preact the alias section of package.json looks like

"alias": {
    "react": "preact/compat",
    "react-dom/test-utils": "preact/test-utils",
    "react-dom": "preact/compat",
    "react/jsx-runtime": "preact/jsx-runtime"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant