Skip to content

Commit 59ce94f

Browse files
committed
Sets esbuild target appropriately
1 parent ae50be9 commit 59ce94f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

webpack.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function getExtensionConfig(target, mode, env) {
204204
options: {
205205
format: 'esm',
206206
implementation: esbuild,
207-
target: ['es2022', 'chrome102', 'node16.14.2'],
207+
target: ['es2022', 'chrome114', 'node18.15.0'],
208208
tsconfig: path.join(
209209
__dirname,
210210
target === 'webworker' ? 'tsconfig.browser.json' : 'tsconfig.json',
@@ -467,7 +467,7 @@ function getWebviewsConfig(mode, env) {
467467
options: {
468468
format: 'esm',
469469
implementation: esbuild,
470-
target: 'es2021',
470+
target: ['es2021', 'chrome114'],
471471
tsconfig: path.join(basePath, 'tsconfig.json'),
472472
},
473473
}
@@ -761,10 +761,14 @@ class FantasticonPlugin {
761761

762762
const logger = compiler.getInfrastructureLogger(this.pluginName);
763763
logger.log(`Generating icon font...`);
764+
765+
const start = Date.now();
766+
764767
await onBefore?.(fontConfig);
765768
await generateFonts(fontConfig);
766769
await onComplete?.(fontConfig);
767-
logger.log(`Generated icon font`);
770+
771+
logger.log(`Generated icon font in \x1b[32m${Date.now() - start}ms\x1b[0m`);
768772
}
769773

770774
compiler.hooks.beforeRun.tapPromise(this.pluginName, generate.bind(this));

0 commit comments

Comments
 (0)