From d3fc47e4ac86ce6eb139eadeb249c5955804cf58 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Tue, 6 Aug 2019 15:52:37 -0400 Subject: [PATCH] [BETA] Add environment variable to opt-out of rolling up `-private` 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); }