about summary refs log tree commit diff
path: root/app/javascript/packs/application.js
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-05-24 18:30:29 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-25 03:30:29 +0200
commit135bdd149e7170d0b91ffcb66f2de8154fe7a066 (patch)
treee30a1098e7fe12bd02925833de0216e87ac68fe0 /app/javascript/packs/application.js
parent3572138b16025159ef8cffcde8761b7b04875bdb (diff)
Name the Webpack chunks (#3291)
Diffstat (limited to 'app/javascript/packs/application.js')
-rw-r--r--app/javascript/packs/application.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js
index 01c28e768..be40726c6 100644
--- a/app/javascript/packs/application.js
+++ b/app/javascript/packs/application.js
@@ -18,13 +18,13 @@ const needsExtraPolyfills = !(
 // This avoids shipping them all the polyfills.
 if (needsBasePolyfills) {
   Promise.all([
-    import('../mastodon/base_polyfills'),
-    import('../mastodon/extra_polyfills'),
+    import(/* webpackChunkName: "base_polyfills" */ '../mastodon/base_polyfills'),
+    import(/* webpackChunkName: "extra_polyfills" */ '../mastodon/extra_polyfills'),
   ]).then(main).catch(e => {
     console.error(e); // eslint-disable-line no-console
   });
 } else if (needsExtraPolyfills) {
-  import('../mastodon/extra_polyfills').then(main).catch(e => {
+  import(/* webpackChunkName: "extra_polyfills" */ '../mastodon/extra_polyfills').then(main).catch(e => {
     console.error(e); // eslint-disable-line no-console
   });
 } else {