From 5bc2b1e1212e4174dee98ceadc48b688dbc0d179 Mon Sep 17 00:00:00 2001 From: jakearchibald Date: Mon, 9 Jan 2023 12:02:43 +0000 Subject: [PATCH] Reduce threads --- lib/omt.ejs | 1 + rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/omt.ejs b/lib/omt.ejs index 2fb71493..7e64b3ad 100644 --- a/lib/omt.ejs +++ b/lib/omt.ejs @@ -13,6 +13,7 @@ // If the loader is already loaded, just stop. if (!self.<%- amdFunctionName %>) { + Object.defineProperty(navigator, 'hardwareConcurrency', { value: 4 }); let registry = {}; const singleRequire = (uri, parentUri) => { diff --git a/rollup.config.js b/rollup.config.js index f4a57384..b793972a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -129,7 +129,7 @@ export default async function ({ watch }) { resolve(), replace({ __PRERENDER__: false, __PRODUCTION__: isProduction }), entryDataPlugin(), - isProduction ? terser({ module: true }) : {}, + //isProduction ? terser({ module: true }) : {}, ], preserveEntrySignatures: false, },