forked from external-repos/squoosh
Compare commits
1 Commits
dev
...
threading-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bc2b1e121 |
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
// If the loader is already loaded, just stop.
|
// If the loader is already loaded, just stop.
|
||||||
if (!self.<%- amdFunctionName %>) {
|
if (!self.<%- amdFunctionName %>) {
|
||||||
|
Object.defineProperty(navigator, 'hardwareConcurrency', { value: 4 });
|
||||||
let registry = {};
|
let registry = {};
|
||||||
|
|
||||||
const singleRequire = (uri, parentUri) => {
|
const singleRequire = (uri, parentUri) => {
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export default async function ({ watch }) {
|
|||||||
resolve(),
|
resolve(),
|
||||||
replace({ __PRERENDER__: false, __PRODUCTION__: isProduction }),
|
replace({ __PRERENDER__: false, __PRODUCTION__: isProduction }),
|
||||||
entryDataPlugin(),
|
entryDataPlugin(),
|
||||||
isProduction ? terser({ module: true }) : {},
|
//isProduction ? terser({ module: true }) : {},
|
||||||
],
|
],
|
||||||
preserveEntrySignatures: false,
|
preserveEntrySignatures: false,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user