# Existing JS module import into ES6 plugin

**URL:** https://meta.discourse.org/t/existing-js-module-import-into-es6-plugin/52713
**Category:** Development
**Created:** [November 9, 2016, 4:38pm UTC](https://meta.discourse.org/t/existing-js-module-import-into-es6-plugin/52713 "2016-11-09T16:38:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 21, 2016, 6:31pm UTC](https://meta.discourse.org/t/existing-js-module-import-into-es6-plugin/52713/2 "2016-11-21T18:31:08Z")

</div>

This is an example of plugin that modifies post cooking:

[https://github.com/discourse/discourse/blob/master/plugins/poll/assets/javascripts/lib/discourse-markdown/poll.js.es6](https://github.com/discourse/discourse/blob/master/plugins/poll/assets/javascripts/lib/discourse-markdown/poll.js.es6)

---

_[View the full topic](https://meta.discourse.org/t/existing-js-module-import-into-es6-plugin/52713)._
