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

Introduce config/addons.js for addon macro-config #2155

Draft
wants to merge 1 commit into
base: stable
Choose a base branch
from

Conversation

simonihmig
Copy link
Collaborator

@simonihmig simonihmig commented Oct 16, 2024

This is integrating https://github.com/simonihmig/ember-addon-config directly into the macros package, as we discussed earlier.

For the motivation see the addon's Readme. tl;dr: make it easy for users to set addon config, without fiddling with ember-cli-build.js (an outdated concept) and @embroider/macros configuration (an implementation detail, users shouldn't need to know what macros are).

We wanted to have the config ideally as ESM, but I failed to make this work, not sure if this is possible. See simonihmig/ember-addon-config#3. But also I feel this is not a show-stopper, as all other node.js config files in an Ember app (ember-cli-build.js, config/environment.js, config/targets.js etc.) are all still CJS...

Open question: is it ok to land this only as a "user-land" feature, or should this be part of an RFC, as it would become a "public API" of the overall framework experience? Could be part of the app v2 RFC?

Keeping this in draft state for now, but please review and share feedback already!

To Do:

  • docs
  • decide on CJS/ESM issue
  • decide on RFC question

@simonihmig simonihmig added the enhancement New feature or request label Oct 17, 2024
@simonihmig simonihmig requested a review from a team October 17, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant