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

Core: Support recursive addon imports #19530

Closed
wants to merge 4 commits into from
Closed

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Oct 19, 2022

Issue: #19176

What I did

This is an attempt to implement the idea in #19176 to pre-require the sub-addons of addon-essentials, so that the preview builders don't need to, thus avoiding problems with pnpm and yarn pnp.

However, after we do import those, we have the problem of getting them into the preview itself. That's a challenge, since these are functions, and as far as I know, can't be properly serialized. But, maybe there's a way to do it?

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

To see the issue, you can compile the code and create a vite sandbox. When it tries to start up, you'll get an error about path only importing strings, and that's because the builder still expects a list of package names.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 2022

Fails
🚫

PR is not labeled with one of: ["cleanup","BREAKING CHANGE","feature request","bug","documentation","maintenance","build","dependencies","other"]

Generated by 🚫 dangerJS against 96918bf

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

Successfully merging this pull request may close these issues.

1 participant