From 73707ba4e592126fbb6a7900bb9d7ba5e2e7ce0a Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 14 Aug 2019 16:57:17 -0400 Subject: [PATCH] [BETA] Add environment variable to opt-out of rolling up `-private` (#6312) This allows us to: * Gather data about size per `-private` module * Gather usage details about each `-private` module (via Chrome's coverage stats) * Test the overall application performance impact of doing the `rollup` stages (do we still need them? how much impact does it have?) --- .../-build-infra/src/addon-build-config-for-data-package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/-build-infra/src/addon-build-config-for-data-package.js b/packages/-build-infra/src/addon-build-config-for-data-package.js index 97ccb883913..33647d1edae 100644 --- a/packages/-build-infra/src/addon-build-config-for-data-package.js +++ b/packages/-build-infra/src/addon-build-config-for-data-package.js @@ -111,7 +111,7 @@ function addonBuildConfigForDataPackage(PackageName) { }, treeForAddon(tree) { - if (this.shouldRollupPrivate !== true) { + if (process.env.EMBER_DATA_ROLLUP_PRIVATE !== 'false' && this.shouldRollupPrivate !== true) { return this._super.treeForAddon.call(this, tree); }