apache / incubator-kie-tools

Tools for KIE
Apache License 2.0
250 stars 185 forks source link

How to get index.js only for dmn editor . #2034

Open Jainbhavik332 opened 1 year ago

Jainbhavik332 commented 1 year ago

When I build the package kie-editors-standalone , I got index.js file in dist folder of around 150 mb , which is taking around 30 sec to open the editor , is there any way to get index.js only for dmn editor just like you have given for standalone editors of around 50 mb @yesamer @tiagobento @ederign .

tiagobento commented 1 year ago

@Jainbhavik332 Hi! The DMN Editor is being rewritten. See:

Our plan is to deprecate the current DMN Editor on @kie-tools/kie-editors-standalone in favor of a new package called @kie-tools/dmn-editor-standalone. I can't give you an exact date, but it should be available on the first half of 2024.

tiagobento commented 1 year ago

In any case, the current DMN Editor on @kie-tools/kie-editors-standalone is a very complicated hack. It involved pre-building the entire HTML for an iframe that gets inlined and appended to the page. Some resources that are fetched by it when initializing have to be done prior to opening it too, and there's a lot going on in the background.

Our official build is ~15MB uncompressed. Maybe you're building it with build:dev?