# Babel note: the code generator has deoptimised the styling of 500kb

**URL:** <https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848>\
**Category:** Kibana\
**Created:** [April 7, 2020, 7:58am UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848 "2020-04-07T07:58:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin020](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Robin020](https://discuss.elastic.co/u/Robin020)\
**Post date:** [April 7, 2020, 7:58am UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/1 "2020-04-07T07:58:12Z")

</div>

Hi,

After I installed a plugin called Mapster ([https://github.com/OmniCyberSecurity/mapster](https://github.com/OmniCyberSecurity/mapster)) and restarted the kibana services, I get the following error:  
`babel note: the code generator has deoptimised the styling of 500kb`

This indicates that a file of this plugin is too big. I am not familiar with "babel". Does somebody know how to disable this optimised check or exceed the value of de size?

Tnx.

Best Regards,  
Robin

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [April 10, 2020, 11:51pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/2 "2020-04-10T23:51:05Z")

</div>

@Robin020 that is not much of deal. That is a warning generated by the babel compact option which is set to auto by default ([https://babeljs.io/docs/en/options#compact](https://babeljs.io/docs/en/options#compact)).

What is the file that originated the babel warning?

---

<div class="post-metadata">

**Author:** ![Robin020](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Robin020](https://discuss.elastic.co/u/Robin020)\
**Post date:** [April 14, 2020, 3:41pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/3 "2020-04-14T15:41:39Z")

</div>

Hi,

The file is:  
[BABEL] Note: The code generator has deoptimised the styling of `/usr/share/kibana/plugins/mapster/public/lib/three.min.js` as it exceeds the max of 500KB.

I am not familiar with babel so I don't where to change this setting to a larger number. Is it a setting in the plugin or from the system itself?

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [April 14, 2020, 4:10pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/4 "2020-04-14T16:10:47Z")

</div>

@Robin020 it is a setting on the kibana optimizer side. Don't worry too much about it 😃

---

<div class="post-metadata">

**Author:** ![Robin020](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Robin020](https://discuss.elastic.co/u/Robin020)\
**Post date:** [April 15, 2020, 7:33am UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/5 "2020-04-15T07:33:15Z")

</div>

Hi Thiago,

But I think my plugin won't start/load in because of this error message. Is it possible to adjust the settings for the kibana optimizer?

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [April 15, 2020, 2:55pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/6 "2020-04-15T14:55:53Z")

</div>

@Robin020 what version of Kibana are you using? I don't think that would prevent the plugin to run, it is just a warning.

---

<div class="post-metadata">

**Author:** ![Robin020](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Robin020](https://discuss.elastic.co/u/Robin020)\
**Post date:** [April 15, 2020, 3:04pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/7 "2020-04-15T15:04:14Z")

</div>

Kibana version is 7.4.2

---

<div class="post-metadata">

**Author:** ![Robin020](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Robin020](https://discuss.elastic.co/u/Robin020)\
**Post date:** [April 15, 2020, 4:26pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/8 "2020-04-15T16:26:01Z")

</div>

Ok, I think I agree with you. I see now these errors:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/d/dd629932a918187b152956de4d0ba497f3e9269b.png)

That's probably my issue...

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [April 21, 2020, 2:07pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/9 "2020-04-21T14:07:16Z")

</div>

@Robin020 yeah I think the problem is the plugin itself. In the plugin description it is stated that it supports `Kibana 5.2.2`, I believe that is the cause for not having the plugin to run

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 19, 2020, 2:07pm UTC](https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/10 "2020-05-19T14:07:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
