# ANNOUNCEMENT - Upgrade of Webpack Version

**URL:** <https://discuss.elastic.co/t/announcement-upgrade-of-webpack-version/105975>\
**Category:** Kibana\
**Created:** [November 1, 2017, 4:11am UTC](https://discuss.elastic.co/t/announcement-upgrade-of-webpack-version/105975 "2017-11-01T04:11:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 1, 2017, 4:11am UTC](https://discuss.elastic.co/t/announcement-upgrade-of-webpack-version/105975/1 "2017-11-01T04:11:44Z")

</div>

Kibana is upgrading to the most recent version of Webpack (3). This should improve build times when restarting the optimizer and should also address the issues some users have been having with node running out of memory.

Plugin authors specifically should be aware that they may need to update a couple things:

1. Imports that include webpack loaders need to specify the full name of the loader, the "-loader" suffix is no longer added automatically:

2. Directories at the root of the Kibana repo can no longer be imported like node\_modules. This feature was commonly used for two purposes:  
a. importing the ui\_framework via `import 'ui_framework/*'`  
- this will continue to work, an alias for `ui_framework` has been added  
b. explicitly importing Kibana's node\_modules via `import 'node_modules/*'`  
- This shouldn't be necessary  
- Use relative imports or webpackShims instead  
- If there isn't a webpackShim for a dependency yet, and the dependency needs to come from the Kibana repo, then we need to add one

This change is only happening in master for now. Since Webpack is very complicated, edge cases from the switch are more likely and we will run with Webpack 3 in master for a while and resolve any hard to spot bugs and from there we will backport to 6.X.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 1, 2017, 4:12am UTC](https://discuss.elastic.co/t/announcement-upgrade-of-webpack-version/105975/2 "2017-11-01T04:12:04Z")

</div>



---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 29, 2017, 4:16am UTC](https://discuss.elastic.co/t/announcement-upgrade-of-webpack-version/105975/3 "2017-11-29T04:16:45Z")

</div>

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