未验证 提交 e9e1a2b9 编写于 作者: T Tim Neutkens 提交者: GitHub

Disable setImmediate polyfill (#10612)

* Disable setImmediate polyfill

* Update size-limit
Co-authored-by: NJoe Haddad <timer150@gmail.com>
Co-authored-by: NJJ Kasper <jj@jjsweb.site>
上级 f0c82300
......@@ -558,6 +558,9 @@ export default async function getBaseWebpackConfig(
].filter(Boolean),
},
context: dir,
node: {
setImmediate: false,
},
// Kept as function to be backwards compatible
entry: async () => {
return {
......
......@@ -80,7 +80,7 @@ describe('Production response size', () => {
)
// 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).toBeGreaterThanOrEqual(-1024) // don't decrease size more than 1kb without updating target
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册