# How to use ES6 in Ghost?

**URL:** <https://forum.ghost.org/t/how-to-use-es6-in-ghost/7118>\
**Category:** Developer help\
**Created:** [May 3, 2019, 6:55am UTC](https://forum.ghost.org/t/how-to-use-es6-in-ghost/7118 "2019-05-03T06:55:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adil\_Osama\_Rasheed](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/adil_osama_rasheed/32/3200_2.png) [@Adil\_Osama\_Rasheed](https://forum.ghost.org/u/Adil_Osama_Rasheed)\
**Post date:** [May 3, 2019, 6:55am UTC](https://forum.ghost.org/t/how-to-use-es6-in-ghost/7118/1 "2019-05-03T06:55:53Z")

</div>

I want to use some libraries that based on ES6 so how can i used them in Ghost.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [May 3, 2019, 1:22pm UTC](https://forum.ghost.org/t/how-to-use-es6-in-ghost/7118/2 "2019-05-03T13:22:33Z")

</div>

@Adil_Osama_Rasheed your question is missing sufficient context for anyone to give you an answer.

Where are you trying to use the libraries - In your front-end theme code? in core? in a headless app that’s using the Content API?

If you’re trying to use them in your theme then there is nothing Ghost-specific for that use-case. You would need to use babel and a bundler like webpack in the same way as you would in any other front-end project, you should be able to find some good generic guides/tutorials on that via Google.

---

<div class="post-metadata">

**Author:** ![Adil\_Osama\_Rasheed](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/adil_osama_rasheed/32/3200_2.png) [@Adil\_Osama\_Rasheed](https://forum.ghost.org/u/Adil_Osama_Rasheed)\
**Post date:** [May 4, 2019, 10:49am UTC](https://forum.ghost.org/t/how-to-use-es6-in-ghost/7118/3 "2019-05-04T10:49:58Z")

</div>

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [May 18, 2019, 10:50am UTC](https://forum.ghost.org/t/how-to-use-es6-in-ghost/7118/4 "2019-05-18T10:50:01Z")

</div>

Closed on May 18, 2019, 10:50am UTC

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