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

Virtual modules from plugins are not importable #617

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

Virtual modules from plugins are not importable #617

NullVoxPopuli opened this issue Mar 29, 2024 · 0 comments

Comments

@NullVoxPopuli
Copy link
Contributor

Kinda similar to embroider-build/embroider#1831

I made an unplugin to see how much compatibility I could get out of it.
So far,

  • works in embroider
  • works in vanilla webpack
  • works in vanilla vite
  • not working in classic ember-cli w/ auto-import

Here is a repro: https://stackblitz.com/edit/stackblitz-starters-up86t9?description=Starter%20project%20for%20Node.js,%20a%20JavaScript%20runtime%20built%20on%20Chrome%27s%20V8%20JavaScript%20engine&file=pnpm-workspace.yaml,ember-user-of-my-plugins%2Fember-cli-build.js,ember-user-of-my-plugins%2Fapp%2Fapp.js,ember-user-of-my-plugins%2Fapp%2Ftemplates%2Fapplication.hbs,ember-user-of-my-plugins%2Fpackage.json,vite-user-of-my-plugins%2Fmain.js&title=node.new%20Starter

The code is in app.js, and imports a virtual module.

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