From b363f55f5cba032cfa3327952e4c62239e73b803 Mon Sep 17 00:00:00 2001 From: Filip Sobol Date: Wed, 8 May 2024 13:38:11 +0200 Subject: [PATCH] Set target to `es2022` --- packages/ckeditor5-dev-build-tools/src/config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ckeditor5-dev-build-tools/src/config.ts b/packages/ckeditor5-dev-build-tools/src/config.ts index 6d701c5a4..11116d00a 100644 --- a/packages/ckeditor5-dev-build-tools/src/config.ts +++ b/packages/ckeditor5-dev-build-tools/src/config.ts @@ -175,7 +175,8 @@ export async function getRollupConfig( options: BuildOptions ) { include: [ '**/*.[jt]s' ], swc: { jsc: { - target: 'es2019' + target: 'es2022', + loose: false }, module: { type: 'es6' @@ -295,6 +296,7 @@ function getTypeScriptPlugin( { } return typescriptPlugin( { + noForceEmit: true, tsconfig, sourceMap, noEmitOnError: true,