DEV: Enable broccoli memoization for faster incremental rebuilds (#22726)

This has been proposed as the new default, and is currently in-use on many large ember apps without issue. It is already the default under Embroider. Testing locally, this seems to make incremental builds in development at least 2x faster.

https://github.com/ember-cli/ember-cli/issues/8681
This commit is contained in:
David Taylor 2023-07-20 23:24:21 +01:00 committed by GitHub
parent 37942cb8bb
commit b426ac68ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ const funnel = require("broccoli-funnel");
const DeprecationSilencer = require("deprecation-silencer");
const generateWorkboxTree = require("./lib/workbox-tree-builder");
process.env.BROCCOLI_ENABLED_MEMOIZE = true;
module.exports = function (defaults) {
const discourseRoot = resolve("../../../..");
const vendorJs = discourseRoot + "/vendor/assets/javascripts/";