Unverified Commit e9e1a2b9 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Disable setImmediate polyfill (#10612)

* Disable setImmediate polyfill

* Update size-limit
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent f0c82300
...@@ -558,6 +558,9 @@ export default async function getBaseWebpackConfig( ...@@ -558,6 +558,9 @@ export default async function getBaseWebpackConfig(
].filter(Boolean), ].filter(Boolean),
}, },
context: dir, context: dir,
node: {
setImmediate: false,
},
// Kept as function to be backwards compatible // Kept as function to be backwards compatible
entry: async () => { entry: async () => {
return { return {
......
...@@ -80,7 +80,7 @@ describe('Production response size', () => { ...@@ -80,7 +80,7 @@ describe('Production response size', () => {
) )
// These numbers are without gzip compression! // These numbers are without gzip compression!
const delta = responseSizesBytes - 241 * 1024 const delta = responseSizesBytes - 238 * 1024
expect(delta).toBeLessThanOrEqual(1024) // don't increase size more than 1kb expect(delta).toBeLessThanOrEqual(1024) // don't increase size more than 1kb
expect(delta).toBeGreaterThanOrEqual(-1024) // don't decrease size more than 1kb without updating target expect(delta).toBeGreaterThanOrEqual(-1024) // don't decrease size more than 1kb without updating target
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment