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

fix(ember): Fix runtime config options not being merged #3791

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

k-fish
Copy link
Member

@k-fish k-fish commented Jul 9, 2021

Summary

Runtime options can be ignored in production mode because of embroider macros differences between dev and production. Instead of relying on the config object reference being provided, we'll use a global instead to hold on to the merged config between the init call and the performance initializer code.

Aside: The code to pull the global is intentionally not DRY'd as to not export the function, which should be internal use only as it's an implementation detail.

Refs #3785 (thanks @kiwi-josh for letting us know)

Runtime options can be ignored in production mode because of @embroider macros differs between dev and production. Instead of relying on the config object reference being provided, we'll use a global instead to hold on to the merged config between the init call and the performance initializer code.
@k-fish k-fish requested a review from kamilogorek as a code owner July 9, 2021 15:34
@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 21.43 KB (0%)
@sentry/browser - Webpack 22.46 KB (0%)
@sentry/react - Webpack 22.49 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 28.93 KB (0%)

@kamilogorek kamilogorek merged commit 8c99771 into master Jul 12, 2021
@kamilogorek kamilogorek deleted the fix/ember-runtime-config-production-env branch July 12, 2021 08:51
@kamilogorek
Copy link
Contributor

Merged to include in the release.

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.

None yet

4 participants