This is an automated email from the ASF dual-hosted git repository.

ricardozanini pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 8fcf0187493 kie-tools-issues#3034: 
[serverless-workflow-editor-standalone-on-webapp] Text editor syntax highlight 
is not loaded (#3036)
8fcf0187493 is described below

commit 8fcf018749368cfded46d5d062b5dcb93550963d
Author: Fabrizio Antonangeli <[email protected]>
AuthorDate: Fri Mar 28 16:56:22 2025 +0100

    kie-tools-issues#3034: [serverless-workflow-editor-standalone-on-webapp] 
Text editor syntax highlight is not loaded (#3036)
---
 .../src/swf/resources/SwfTextEditorResources.ts                     | 6 +++++-
 .../webpack.editor-resources.config.js                              | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/packages/serverless-workflow-standalone-editor/src/swf/resources/SwfTextEditorResources.ts
 
b/packages/serverless-workflow-standalone-editor/src/swf/resources/SwfTextEditorResources.ts
index 8d3649ab5bd..d5b909351c4 100644
--- 
a/packages/serverless-workflow-standalone-editor/src/swf/resources/SwfTextEditorResources.ts
+++ 
b/packages/serverless-workflow-standalone-editor/src/swf/resources/SwfTextEditorResources.ts
@@ -33,6 +33,7 @@ interface ServerlessWorkflowResources extends EditorResources 
{
 export class ServerlessWorkflowTextEditorResources extends BaseEditorResources 
{
   private readonly JS_RESOURCES_EXPR = "(\\wmonaco-editor.*)(\\wjso|\\wyaml)";
   private readonly JS_WORKER_EXPR = ".worker.js";
+  private readonly JS_BUNDLES_EXPR = ".bundle.js";
 
   public get(args: { resourcesPathPrefix: string }) {
     const swfTextEditorResources: ServerlessWorkflowResources = {
@@ -48,7 +49,10 @@ export class ServerlessWorkflowTextEditorResources extends 
BaseEditorResources {
   }
 
   public getReferencedJSPaths(resourcesPathPrefix: string) {
-    return this.getJSResources(resourcesPathPrefix, this.JS_RESOURCES_EXPR);
+    return [
+      ...this.getJSResources(resourcesPathPrefix, this.JS_RESOURCES_EXPR),
+      ...this.getJSResources(resourcesPathPrefix, this.JS_BUNDLES_EXPR),
+    ];
   }
 
   public getWorkersJSResources(resourcesPathPrefix: string) {
diff --git 
a/packages/serverless-workflow-standalone-editor/webpack.editor-resources.config.js
 
b/packages/serverless-workflow-standalone-editor/webpack.editor-resources.config.js
index 24b178fa0d3..c97b621997a 100644
--- 
a/packages/serverless-workflow-standalone-editor/webpack.editor-resources.config.js
+++ 
b/packages/serverless-workflow-standalone-editor/webpack.editor-resources.config.js
@@ -56,6 +56,7 @@ module.exports = (webpackEnv) => [
             copy: [
               { source: "./dist/*monaco-editor*.js", destination: 
"./dist/resources/swf/js/" },
               { source: "./dist/*worker*.js", destination: 
"./dist/resources/swf/js/" },
+              { source: "./dist/*.bundle.js", destination: 
"./dist/resources/swf/js/" },
             ],
             delete: ["./dist/*monaco-editor*.js", "./dist/*worker*.js"],
           },


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to