Skip to content

Commit

Permalink
Update esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jan 11, 2023
1 parent 4e96024 commit 35ba00d
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"size-limit": "8.1.0"
},
"dependencies": {
"esbuild": "^0.15.18",
"esbuild": "^0.16.16",
"nanoid": "^3.3.4"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/esbuild/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ it('uses esbuild to make bundle', async () => {
esbuildOutfile: config.checks[0].esbuildOutfile,
esbuildConfig: config.checks[0].esbuildConfig,
bundles: [join(config.checks[0].esbuildOutfile, 'big.js')],
size: 2115
size: 2113
}
]
})
Expand Down Expand Up @@ -219,7 +219,7 @@ it('can use `modifyEsbuildConfig` for resolution of aliases', async () => {
return config
}
})
).toBe(2115)
).toBe(2113)
})

it('supports specifying the import', async () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/size-limit/test/run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ it('returns zero for empty file with esbuild and without gzip', async () => {
if (NODE_VERSION >= 16) {
it('allows to use peer dependencies in import', async () => {
await checkJson('combine', [
{ name: 'all', size: 2253 },
{ name: 'all', size: 2251 },
{ name: 'a', size: 1 },
{ name: 'redux', size: 2249 }
{ name: 'redux', size: 2248 }
])
})
}
Expand Down
Loading

0 comments on commit 35ba00d

Please sign in to comment.