1 diff --git a/src/kwinscript/CMakeLists.txt b/src/kwinscript/CMakeLists.txt
2 index 9e2f7054..ed607027 100644
3 --- a/src/kwinscript/CMakeLists.txt
4 +++ b/src/kwinscript/CMakeLists.txt
5 @@ -39,7 +39,7 @@ endif()
7 "esbuild" "--bundle" "${CMAKE_CURRENT_SOURCE_DIR}/index.ts"
8 "--outfile=${CMAKE_CURRENT_BINARY_DIR}/bismuth/contents/code/index.mjs"
9 - "--format=esm" "--platform=neutral")
10 + "--format=esm" "--platform=neutral" "--target=es6")
12 list(PREPEND ESBUILD_COMMAND "npx")