From ae691c68d6bfa35a533ab4f9febad2906dc8de0e Mon Sep 17 00:00:00 2001 From: Filip Sobol Date: Tue, 7 May 2024 12:19:17 +0200 Subject: [PATCH] Update esbuild-loader to ^4.1.0 --- packages/ckeditor5-dev-utils/lib/loaders/index.js | 5 ++++- packages/ckeditor5-dev-utils/package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/ckeditor5-dev-utils/lib/loaders/index.js b/packages/ckeditor5-dev-utils/lib/loaders/index.js index e3f793166..553189dfb 100644 --- a/packages/ckeditor5-dev-utils/lib/loaders/index.js +++ b/packages/ckeditor5-dev-utils/lib/loaders/index.js @@ -31,7 +31,10 @@ module.exports = { use: [ { loader: 'esbuild-loader', - options: { tsconfig: configFile } + options: { + target: 'es2022', + tsconfig: configFile + } }, includeDebugLoader ? getDebugLoader( debugFlags ) : null ].filter( Boolean ) diff --git a/packages/ckeditor5-dev-utils/package.json b/packages/ckeditor5-dev-utils/package.json index 0deac28de..3553c2f27 100644 --- a/packages/ckeditor5-dev-utils/package.json +++ b/packages/ckeditor5-dev-utils/package.json @@ -12,7 +12,7 @@ "css-loader": "^5.2.7", "cssnano": "^6.0.3", "del": "^5.0.0", - "esbuild-loader": "~3.0.1", + "esbuild-loader": "^4.1.0", "fs-extra": "^9.1.0", "is-interactive": "^1.0.0", "javascript-stringify": "^1.6.0",