Skip to content

Commit

Permalink
Lower target to support more legacy codebases
Browse files Browse the repository at this point in the history
  • Loading branch information
lramos15 committed Jan 11, 2022
1 parent 4911887 commit c561107
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .esbuild.config.js
Expand Up @@ -19,7 +19,7 @@ esbuild.build({
external: ['vscode'],
sourcemap: true,
platform: 'node',
target: ['node12'],
target: ['node14'],
outfile: 'lib/telemetryReporter.node.js',
}).catch(() => process.exit(1))

Expand All @@ -31,7 +31,7 @@ esbuild.build({
external: ['vscode'],
minify: true,
platform: 'node',
target: ['node12'],
target: ['node14'],
outfile: 'lib/telemetryReporter.node.min.js',
}).catch(() => process.exit(1))

Expand All @@ -44,6 +44,7 @@ esbuild.build({
sourcemap: true,
external: ['vscode'],
platform: 'browser',
target: ['es6'],
outfile: 'lib/telemetryReporter.web.js',
}).catch(() => process.exit(1))

Expand All @@ -56,5 +57,6 @@ esbuild.build({
external: ['vscode'],
minify: true,
platform: 'browser',
target: ['es6'],
outfile: 'lib/telemetryReporter.web.min.js',
}).catch(() => process.exit(1))

0 comments on commit c561107

Please sign in to comment.