Skip to content

Commit

Permalink
chore(deps)!: update esbuild to 0.16.1 (#11235)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 7, 2022
1 parent 52a6732 commit d90a262
Show file tree
Hide file tree
Showing 3 changed files with 256 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"//": "READ CONTRIBUTING.md to understand what to put under deps vs. devDeps!",
"dependencies": {
"esbuild": "^0.15.18",
"esbuild": "^0.16.1",
"postcss": "^8.4.19",
"resolve": "^1.22.1",
"rollup": "^3.6.0"
Expand Down
2 changes: 2 additions & 0 deletions packages/vite/src/node/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ export async function transformWithEsbuild(
}

const resolvedOptions = {
// esbuild 0.16.0 & 0.16.1 defaults to 'browser': https://github.com/evanw/esbuild/issues/2718
platform: 'neutral',
sourcemap: true,
// ensure source file name contains full query
sourcefile: filename,
Expand Down

0 comments on commit d90a262

Please sign in to comment.