Skip to content

Commit

Permalink
fix: change esbuild compiler target to es2020 + bump esbuild + bu…
Browse files Browse the repository at this point in the history
…mp rollup

close vitejs#503
  • Loading branch information
underfin committed Jul 7, 2020
1 parent cdbe514 commit 2772473
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"dotenv": "^8.2.0",
"dotenv-expand": "^5.1.0",
"es-module-lexer": "^0.3.18",
"esbuild": "^0.5.11",
"esbuild": "^0.5.24",
"etag": "^1.8.1",
"execa": "^4.0.1",
"fs-extra": "^9.0.0",
Expand All @@ -90,7 +90,7 @@
"postcss-import": "^12.0.1",
"postcss-load-config": "^2.1.0",
"resolve": "^1.17.0",
"rollup": "^2.11.2",
"rollup": "^2.20.0",
"rollup-plugin-dynamic-import-variables": "^1.0.1",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-vue": "^6.0.0-beta.6",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/node/esbuildService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const transform = async (
loader: options.loader || (path.extname(file).slice(1) as any),
sourcemap: true,
sourcefile: request, // ensure source file name contains full query
target: 'es2019'
target: 'es2020'
}
try {
const result = await service.transform(src, options)
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2398,10 +2398,10 @@ es-to-primitive@^1.2.1:
is-date-object "^1.0.1"
is-symbol "^1.0.2"

esbuild@^0.5.11:
version "0.5.11"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.5.11.tgz#9872ad552db1958d37a6ad7160294bf4320c0531"
integrity sha512-E/SBK3tHIcj3iCZh0bUf8/pmEAcM10W7SH2feuHZSzTpLZmtxlWl9j5tesY6OLkv2oDgfX0r9mbOeltXUbJe4Q==
esbuild@^0.5.24:
version "0.5.24"
resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.5.24.tgz#7f745c34346e842e7a5347dec0b6b65f43cacd1e"
integrity sha512-DBbxT8IBzgvhfm6SXopzMZt9xDQGgBBVnLqTYVRgHKPwBIu6Sg/haBbPAVCwBnNHwJtouBrfo8oTMIPoF8p9eg==

escape-html@^1.0.3:
version "1.0.3"
Expand Down Expand Up @@ -5928,10 +5928,10 @@ rollup-pluginutils@^2.8.2:
dependencies:
estree-walker "^0.6.1"

rollup@^2.11.2:
version "2.11.2"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.11.2.tgz#b1273ad3e43953d09807672f6b72d08f9f9bc008"
integrity sha512-pJT6mfH+/gh1sOWyNMAWxjbYGL5x2AfsaR0SWLRwq2e7vxOKt/0mBjtYDTVYF8JXxVzmnuDzA+EpsPLWt/oyrg==
rollup@^2.20.0:
version "2.20.0"
resolved "https://registry.npmjs.org/rollup/-/rollup-2.20.0.tgz#7456fed8424a5247954958751642e9fdd0ad7485"
integrity sha512-hkbp//ne1om8+PQRpd81zk0KDvbJxkLZdZJh1ZNxjd1EkI0H1TmYuHqqXx88yciS+5YnMom3geubQjTeeUnNNw==
optionalDependencies:
fsevents "~2.1.2"

Expand Down

0 comments on commit 2772473

Please sign in to comment.