# \#compilation

**URL:** https://forum.babylonjs.com/tag/compilation/347.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Is it safe to enable for-of to indexed for transform for esm package downstreams](https://forum.babylonjs.com/t/is-it-safe-to-enable-for-of-to-indexed-for-transform-for-esm-package-downstreams/63193)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 4\
**Last updated:** [April 23, 2026, 12:18pm UTC](https://forum.babylonjs.com/t/is-it-safe-to-enable-for-of-to-indexed-for-transform-for-esm-package-downstreams/63193 "2026-04-23T12:18:11Z")

</div>

When developing in the babylonjs repo, there is a custom eslint rule babylonjs/no-downlevel-iteration disallows using for-of against Maps, and in the umd packages, for-of loop is compiled to indexed for loops, but it’s k…

---

## [FluentMaterial fails to compile via vite](https://forum.babylonjs.com/t/fluentmaterial-fails-to-compile-via-vite/51518)

<div class="topic-metadata">

**Author:** [@simens\_green](https://forum.babylonjs.com/u/simens_green)\
**Replies:** 3\
**Last updated:** [June 21, 2024, 4:55pm UTC](https://forum.babylonjs.com/t/fluentmaterial-fails-to-compile-via-vite/51518 "2024-06-21T16:55:12Z")

</div>

Repo: Seems like somehow index.html content appears in shader code and breaks it down

---

## [NME - Modulo (%) node seems broken](https://forum.babylonjs.com/t/nme-modulo-node-seems-broken/50147)

<div class="topic-metadata">

**Author:** [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Replies:** 4\
**Last updated:** [April 29, 2024, 6:24pm UTC](https://forum.babylonjs.com/t/nme-modulo-node-seems-broken/50147 "2024-04-29T18:24:57Z")

</div>

Hello, In the Node Material Editor, the Modulo node (“Mod”) seems to be broken. As soon as it’s in use, the Shader Compilation gives error : Shader compilation error: FRAGMENT SHADER ERROR: 0:123: '%' : wrong operand …

---

## [Big custom shader takes 15 seconds to compile](https://forum.babylonjs.com/t/big-custom-shader-takes-15-seconds-to-compile/45087)

<div class="topic-metadata">

**Author:** [@spawner64](https://forum.babylonjs.com/u/spawner64)\
**Replies:** 10\
**Last updated:** [October 23, 2023, 11:23am UTC](https://forum.babylonjs.com/t/big-custom-shader-takes-15-seconds-to-compile/45087 "2023-10-23T11:23:01Z")

</div>

Hi everyone, I’m developing a custom shader that’s quite large (~1300 lines in the fragment code) and the compilation process is very slow (~15 seconds until I get to see any change). I use ShaderStore to store the sha…

---

## [Long time for shader compilation from glb file](https://forum.babylonjs.com/t/long-time-for-shader-compilation-from-glb-file/41137)

<div class="topic-metadata">

**Author:** [@Dok11](https://forum.babylonjs.com/u/Dok11)\
**Replies:** 4\
**Last updated:** [May 26, 2023, 12:44pm UTC](https://forum.babylonjs.com/t/long-time-for-shader-compilation-from-glb-file/41137 "2023-05-26T12:44:05Z")

</div>

I use SceneLoader.Append to import my glb file into scene. It contains many meshes with different materials, so their compilation takes a long time — from 1 sec on high end pc, up to 15 sec in Safari. Is it possible to …
