From 7c85daa64e8ba29d31f2de664e90e9cfb04a81b1 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 14 Jun 2021 10:03:44 +0100 Subject: [PATCH] fix(nitro): set esbuild `target: '2019'` (#189) --- package.json | 1 + packages/nitro/src/rollup/config.ts | 1 + yarn.lock | 20 +------------------- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index ed29b63264..85db6eef49 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "version": "yarn && git add yarn.lock" }, "resolutions": { + "esbuild": "^0.12", "nuxt3": "workspace:./packages/nuxt3" }, "devDependencies": { diff --git a/packages/nitro/src/rollup/config.ts b/packages/nitro/src/rollup/config.ts index 4867f91744..b5430118d6 100644 --- a/packages/nitro/src/rollup/config.ts +++ b/packages/nitro/src/rollup/config.ts @@ -145,6 +145,7 @@ export const getRollupConfig = (nitroContext: NitroContext) => { // ESBuild rollupConfig.plugins.push(esbuild({ + target: 'es2019', sourceMap: true })) diff --git a/yarn.lock b/yarn.lock index 517c24dddd..9e0ad15d7e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5636,25 +5636,7 @@ __metadata: languageName: node linkType: hard -"esbuild@npm:^0.11.19, esbuild@npm:^0.11.6": - version: 0.11.23 - resolution: "esbuild@npm:0.11.23" - bin: - esbuild: bin/esbuild - checksum: 9226fc3d74f7555c96778c5d9204312c578e9c11b472deebfbab52c4ac58b9efc3a40be529368f6ccbe257d0059c6b8fd142c179824a3227d055d912c7b5a94a - languageName: node - linkType: hard - -"esbuild@npm:^0.12.1, esbuild@npm:^0.12.5": - version: 0.12.6 - resolution: "esbuild@npm:0.12.6" - bin: - esbuild: bin/esbuild - checksum: 5303e77b84575ab4c71b381d797723f57208dd314c2d85e12b7f23fcd9edebf9e2be4bf2a7a23384205cd953990a4694b07dec00bbab55a6a729b5ca5bf8f0dd - languageName: node - linkType: hard - -"esbuild@npm:^0.12.7": +"esbuild@npm:^0.12": version: 0.12.7 resolution: "esbuild@npm:0.12.7" bin: