igniteui-angular-samples icon indicating copy to clipboard operation
igniteui-angular-samples copied to clipboard

Live Editing generation is slow

Open tiliev opened this issue 6 years ago • 3 comments

Description

The live editing generation (gulp generate-live-editing) is slow. It takes about a minute and a half on a fast dev machine. Please do a research and try to decrease the required time.

When tackling this issue, please consider the starting points from below. We do transpilation of the node_modules/igniteui-angular because it is ES6. This slow us down significantly. The transpilation is done by ts-node which treats our package as typescript and transpiles it - code. Please keep in mind we have es5 version of our package inside of the folder esm5. But we'll have to change the imports in the live editing configurations which we send directly to StackBlitz. This could be worked around of course. Also, please consider other es6 transpilers like babel. They might do it faster and use caching. ts-node does not have any caching as of version 8.0.0. Using the ES6 package directly will be perfect, but node.js does not yet support it by default. There are some packages which enable that, like esm.

tiliev avatar Feb 13 '19 13:02 tiliev

xsharp team is considering moving all our samples to static stackblitz such that we do not have to generate them from this repo. This way we could also speed up loading our controls on stackblitz. @gmurray81 do you want to add anything else?

HUSSAR-mtrela avatar Feb 19 '19 15:02 HUSSAR-mtrela

@HUSSAR-mtrela , @gmurray81 , any update on live editing for the samples?

radomirchev avatar Mar 31 '21 10:03 radomirchev

you mean like the same breakdown we do for WC/React @HUSSAR-mtrela ?

gmurray81 avatar Apr 01 '21 00:04 gmurray81