Skip to content

Commit

Permalink
force building Ember bundles when targets.node is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Feb 11, 2021
1 parent c180944 commit 7c5b2d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ module.exports = {

let ember;
let targets = (this.project && this.project.targets && this.project.targets.browsers) || [];
let targetingNode = (this.project && this.project.targets && this.project.targets.node) || false;

if (targets.includes('ie 11')) {
this.ui.writeWarnLine(
Expand All @@ -282,7 +283,9 @@ module.exports = {
if (
!isProduction &&
PRE_BUILT_TARGETS.every((target) => targets.includes(target)) &&
targets.length === PRE_BUILT_TARGETS.length
targets.length === PRE_BUILT_TARGETS.length &&
// if node is defined in targets we can't reliably use the prebuilt bundles
!targetingNode
) {
ember = new Funnel(tree, {
destDir: 'ember',
Expand Down

0 comments on commit 7c5b2d4

Please sign in to comment.