Skip to content

Commit

Permalink
Merge pull request #952 from ckeditor/update-target-to-es2022
Browse files Browse the repository at this point in the history
Feature (build-tools): Set `target:es2022` and `loose:false` in swc plugin to avoid syntax lowering and unnecessary code transformation.

Fix (build-tools): Prevent TypeScript plugin from processing the source code (which is already done by the swc plugin).
  • Loading branch information
filipsobol authored May 8, 2024
2 parents cd7ea35 + b363f55 commit 66c6a4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ckeditor5-dev-build-tools/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ export async function getRollupConfig( options: BuildOptions ) {
include: [ '**/*.[jt]s' ],
swc: {
jsc: {
target: 'es2019'
target: 'es2022',
loose: false
},
module: {
type: 'es6'
Expand Down Expand Up @@ -295,6 +296,7 @@ function getTypeScriptPlugin( {
}

return typescriptPlugin( {
noForceEmit: true,
tsconfig,
sourceMap,
noEmitOnError: true,
Expand Down

0 comments on commit 66c6a4d

Please sign in to comment.