Name the Webpack chunks (#3291)

This commit is contained in:
Nolan Lawson authored and Eugen Rochko committed 2017-05-25 03:30:29 +02:00
1 parent 3572138b16
commit 135bdd149e
2 files changed
+4 -4

No files matched your search

@@ -49,7 +49,7 @@ class EmojiPickerDropdown extends React.PureComponent {
this.setState({active: true});
if (!EmojiPicker) {
this.setState({loading: true});
import('emojione-picker').then(TheEmojiPicker => {
import(/* webpackChunkName: "emojione_picker" */ 'emojione-picker').then(TheEmojiPicker => {
EmojiPicker = TheEmojiPicker.default;
this.setState({loading: false});
}).catch(err => {