# Disable Babel for Kibana Plugin (Development)

**URL:** <https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891>\
**Category:** Kibana\
**Created:** [April 15, 2019, 11:24am UTC](https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891 "2019-04-15T11:24:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrei.costache](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@andrei.costache](https://discuss.elastic.co/u/andrei.costache)\
**Post date:** [April 15, 2019, 11:24am UTC](https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891/1 "2019-04-15T11:24:10Z")

</div>

Hi,

I am developing a JavaScript (React) plugin for Kibana, version 6.1.3. And I would like to disable Babel, for my plugin, while developing (I do not want my code transpiled). I tried [this older suggestion](https://stackoverflow.com/questions/46384640/how-to-disable-babel-in-kibana-for-plugin-development), but it does not work.  
I am starting (the development) Kibana using 'sh ./bin/kibana --dev --no-base-path --plugin-path /path/to/plugin'.  
Is there any other way to prevent the transpiling process in such a scenario (or on an "outside" plugin directory)?

Thank you in advance,  
Andrei.

---

<div class="post-metadata">

**Author:** ![monfera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monfera/32/26467_2.png) [@monfera](https://discuss.elastic.co/u/monfera)\
**Post date:** [April 15, 2019, 1:17pm UTC](https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891/2 "2019-04-15T13:17:28Z")

</div>

Hi Andrei, what is it that you actually put in the config file?

---

<div class="post-metadata">

**Author:** ![andrei.costache](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@andrei.costache](https://discuss.elastic.co/u/andrei.costache)\
**Post date:** [April 15, 2019, 1:36pm UTC](https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891/3 "2019-04-15T13:36:46Z")

</div>

Hi Robert,

I modified the src attribute in the babel.js config task, with changes marked below (not all at once)  
`src: [`  
`'build/kibana/**/*.js`',  
`'! **/public/**',`  
`'! **/node_modules/**',`  
`'! **/bower_components/**',`  
`'! **/ __tests__ /**',`  
`'! **my_plugin**',` // change#1  
`'! **/my_plugin/**'` // change#2  
`]`  
I don't know how the resources outside the kibana folder are read. And I admit I am not experienced with grunt/babel (or globbing), so I assume this could be a beginner's mistake.

The location of my plugin, relative to the Kibana dev workspace, is as follows:  
`/some/path/kibana`  
`/some/path/kibana_plugins_dir/my_plugin`

Thank you!

---

<div class="post-metadata">

**Author:** ![monfera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/monfera/32/26467_2.png) [@monfera](https://discuss.elastic.co/u/monfera)\
**Post date:** [April 15, 2019, 2:51pm UTC](https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891/4 "2019-04-15T14:51:20Z")

</div>

Could you try variations around moving up into the parent directory of the project eg. `'!../kibana_plugins_dir/**'`?

---

<div class="post-metadata">

**Author:** ![andrei.costache](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@andrei.costache](https://discuss.elastic.co/u/andrei.costache)\
**Post date:** [April 23, 2019, 6:28am UTC](https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891/5 "2019-04-23T06:28:50Z")

</div>

I have tried several variations, to no result yet.

Is there any other place where such settings can be configured (for instance where the babel task is run, so that I can debug around there maybe)?

Thank you!

---

<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 21, 2019, 6:28am UTC](https://discuss.elastic.co/t/disable-babel-for-kibana-plugin-development/176891/6 "2019-05-21T06:28:59Z")

</div>

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