FIX: Allow `@ember/test` import in embercli prod builds (#16264)
This matches the behavior of legacy discourse-loader and the regular Ember resolver.
This commit is contained in:
parent
97e7bb1ce4
commit
7fcf4dcd4b
|
@ -40,7 +40,11 @@ module.exports = {
|
||||||
m = modules[entry.module] = [];
|
m = modules[entry.module] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
m.push(entry);
|
if (entry.module === "@ember/test") {
|
||||||
|
m.push({ ...entry, global: `(Ember.Test && ${entry.global})` });
|
||||||
|
} else {
|
||||||
|
m.push(entry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let output = "";
|
let output = "";
|
||||||
|
|
Loading…
Reference in New Issue