# HighlightLayer side effect

**URL:** <https://forum.babylonjs.com/t/highlightlayer-side-effect/28840>\
**Category:** Bugs\
**Created:** [March 28, 2022, 8:28pm UTC](https://forum.babylonjs.com/t/highlightlayer-side-effect/28840 "2022-03-28T20:28:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blake](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/blake/32/21509_2.png) [@Blake](https://forum.babylonjs.com/u/Blake)\
**Post date:** [March 28, 2022, 8:28pm UTC](https://forum.babylonjs.com/t/highlightlayer-side-effect/28840/1 "2022-03-28T20:28:39Z")

</div>

Using the ES6 modules, the HighlightLayer requires the extra file effectLayerSceneComponent.ts to be imported but GlowLayer doesn’t. I noticed that glowLayer.ts has the below line to import it, should this line be added to highlightLayer.ts as well?

```auto
import "../Layers/effectLayerSceneComponent";

```

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 28, 2022, 8:32pm UTC](https://forum.babylonjs.com/t/highlightlayer-side-effect/28840/2 "2022-03-28T20:32:00Z")

</div>

I ll add it to my current PR

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 28, 2022, 8:34pm UTC](https://forum.babylonjs.com/t/highlightlayer-side-effect/28840/3 "2022-03-28T20:34:41Z")

</div>

Added there [webgpu wgsl update elseif -\> else if by sebavan · Pull Request #12272 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/12272/files)
