Configure webpack public path for gallery search bundle, fixing translations failing to load GitOrigin-RevId: e785ccac2bbba7ff9d929730c6ea84249f6db109
@@ -16,6 +16,7 @@
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
+import './utils/webpack-public-path'
import './libraries'
import './infrastructure/error-reporter'
import './modules/recursionHelper'
@@ -18,8 +18,3 @@ import 'isomorphic-unfetch'
// Rewrite meta elements
import './utils/meta'
-
-// Configure dynamically loaded assets (via webpack) to be downloaded from CDN
-// See: https://webpack.js.org/guides/public-path/#on-the-fly
-// eslint-disable-next-line no-undef, camelcase
-__webpack_public_path__ = window.baseAssetPath
@@ -0,0 +1,6 @@
+import getMeta from './meta'
+
+// Configure dynamically loaded assets (via webpack) to be downloaded from CDN
+// See: https://webpack.js.org/guides/public-path/#on-the-fly
+// eslint-disable-next-line no-undef, camelcase
+__webpack_public_path__ = getMeta('ol-baseAssetPath')