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, },