Merge pull request #269995 from mfenniak/bismuth-esbuild-bug

libsForQt5.bismuth: Fix generated JS
This commit is contained in:
K900 2023-12-05 09:31:53 +03:00 committed by GitHub
commit c5b3e8fa80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

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

View file

@ -21,6 +21,10 @@ mkDerivation rec {
sha256 = "sha256-c13OFEw6E/I8j/mqeLnuc9Chi6pc3+AgwAMPpCzh974=";
};
patches = [
./0001-esbuild-config.patch
];
cmakeFlags = [
"-DUSE_TSC=OFF"
"-DUSE_NPM=OFF"