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

Use require to retrieve the app's config #45

Merged
merged 4 commits into from
Jun 28, 2022
Merged

Use require to retrieve the app's config #45

merged 4 commits into from
Jun 28, 2022

Conversation

Windvis
Copy link
Contributor

@Windvis Windvis commented Jun 16, 2022

This uses loader.js's require function to retrieve the app's environment config. This bypasses the importSync dependency checking that happens in Embroider builds which causes the build to fail since the dependency doesn't exist in the addon.

I included the commits of #42, #43 and #44 so that I could test it still works under all those new tests. I'll rebase after those are merged.

package.json Outdated Show resolved Hide resolved
bertdeblock and others added 4 commits June 28, 2022 11:03
The extra addon config test case added an extra value to the application template which breaks the FastBoot test
This uses loader.js's `require` function to retrieve the app's environment config. This bypasses the `importSync` dependency checking that happens in Embroider builds which causes the build to fail since the dependency doesn't exist in the addon.
@jrjohnson
Copy link

I'm seeing a build warning:

WARNING: The 'package.json' file for the addon at APP/node_modules/@fortawesome/ember-fontawesome/node_modules/ember-get-config
specifies an invalid, malformed or missing addon at relative path 'lib/baz'

Which looks to be caused by this change.

@bertdeblock
Copy link
Contributor

Made #49 to resolve the warning.

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.

4 participants