Skip to content

Commit

Permalink
Merge pull request #20697 from emberjs/loader-bug
Browse files Browse the repository at this point in the history
Bugfix: new loader feature was missing cache update
  • Loading branch information
ef4 authored May 14, 2024
2 parents 2fd542f + b1ae249 commit 775dcdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/loader/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var define, require;

var result = callback.apply(this, reified);
if (!deps.includes('exports') || result !== undefined) {
exports = result;
exports = seen[name] = result;
}

return exports;
Expand Down
8 changes: 8 additions & 0 deletions tests/node/template-compiler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ QUnit.module('ember-template-compiler.js', function () {
assert.notEqual(typeof templateCompiler._Ember.ENV, null, '_Ember.ENV is not null');
});

QUnit.test('_Ember.ENV (private API used by ember-cli-htmlbars) is stable', function (assert) {
assert.strictEqual(
templateCompiler._Ember.ENV,
templateCompiler._Ember.ENV,
'_Ember.ENV is stable'
);
});

QUnit.test(
'can access _Ember.FEATURES (private API used by ember-cli-htmlbars)',
function (assert) {
Expand Down

0 comments on commit 775dcdc

Please sign in to comment.