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

support alias definitions in package.json #38

Open
schlichtanders opened this issue Apr 3, 2024 · 2 comments
Open

support alias definitions in package.json #38

schlichtanders opened this issue Apr 3, 2024 · 2 comments

Comments

@schlichtanders
Copy link

I am trying to get importmaps running for preact in combination with @mui/material (which needs react to be aliased to preact/compat and similar).

While importly is the only import map generator so far which does not fail creating an importmap on nodemodules, it unfortunately does not respect the alias mapping.
React is not pointed towards preact/compat...

Please advise on how to set aliases, as preact would really be awesome in such an importmap setup

@chase-moskal
Copy link
Owner

chase-moskal commented Apr 3, 2024

👋 hey, this is definitely something importly should support.

i'm planning to do a big overhaul of importly, and i want aliases to be a feature of this next version.

i'm very busy so i have no idea when i'll scrape up the time to give this the attention is deserves, so in the meantime, i'd be happy to review and potentially merge a pull request as an interim hotfix for this issue.

@schlichtanders
Copy link
Author

I am still looking for a quicker workaround (something around specifying the importmaps manually) in order to get the aliasing working.

I am really surprised that no npm to importmap solution I found so far supports aliases. Surprising

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

2 participants