-
Notifications
You must be signed in to change notification settings - Fork 142
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
Webpack is using the Ember global in compiled templates #781
Comments
This is supposed to be handled here, could you poke around and see what's happening in that spot? |
Never mind! I was totally wrong. It was this: embroider/packages/core/src/mini-modules-polyfill.ts Lines 28 to 35 in d36a045
This polyfill is being run in apps on the embroider/packages/compat/src/compat-app.ts Line 368 in 8137a35
// ¯\(°_o)/¯ I guess
semver.satisfies('3.27.0-beta.4', '<3.27.0', { includePrerelease: true })
// > true
semver.satisfies('3.27.0-beta.4', '<3.27.0-beta.0', { includePrerelease: true })
// > false |
Just as I’m about to close the issue 😅 Great timing! |
We should probably still change that condition so it allows the beta series. I think |
The polyfill uses the Ember global, which is deprecated in `3.27.0`. This disables the polyfill for the `3.27.0-beta.x` ranges. Fixes embroider-build#781.
The polyfill uses the Ember global, which is deprecated in `3.27.0`. This additionally disables the polyfill for the `3.27.0-beta.x` ranges. Fixes embroider-build#781.
The polyfill uses the Ember global, which is deprecated in `3.27.0`. This additionally disables the polyfill for the `3.27.0-beta.x` ranges. Fixes embroider-build#781.
The polyfill uses the Ember global, which is deprecated in `3.27.0`. This additionally disables the polyfill for the `3.27.0-beta.x` ranges. Fixes embroider-build#781.
Summary
I think Webpack is turning imports of
createTemplateFactory
into a reference toEmber.HTMLBars.template
, which throws deprecation notices in apps running3.27+
.In more detail
As of
v3.27
, accessing the Ember global throws a deprecation notice.ember-cli-htmlbars
was recently updated to replaceEmber.HTMLBars.template
with module imports.Now, templates should be compiled with:
But in apps built with Embroider specifically, what we see is the following:
My hunch is that Webpack is doing this, but I have no proof 🤣.
Any ideas? Am I completely wrong here?
Steps to reproduce
Run
ember new
withember-cli@3.27-beta.x
.Inspect the console logs. You should see a warning coming from
application.hbs
.Versions used for testing
The text was updated successfully, but these errors were encountered: