Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-04-09 09:57:50 +0300
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-04-09 10:27:28 +0300
commit9f38d3db91da83f67758204655a9b03cd027278b (patch)
treeb4a1c26d1c6f4148684f76b962b40d24e2026bca
parent9fc4c2498382c1a04df31189d1d808eb0a69f16d (diff)
Merge branch 'revert-e4b2c3b0' into 'master'
Revert "Merge branch 'fix-ide-web-worker-relative-url' into 'master'" Closes #60217 See merge request gitlab-org/gitlab-ce!26066 (cherry picked from commit 5cc1d2f1ef2fd64662e1a1f9b72dd59b0ec98625) 596d5fa2 Revert "Merge branch 'fix-ide-web-worker-relative-url' into 'master'"
-rw-r--r--app/assets/javascripts/lib/utils/webpack.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/webpack.js b/app/assets/javascripts/lib/utils/webpack.js
index a4dad6f1615..37b5409a51d 100644
--- a/app/assets/javascripts/lib/utils/webpack.js
+++ b/app/assets/javascripts/lib/utils/webpack.js
@@ -6,5 +6,11 @@ export function resetServiceWorkersPublicPath() {
// see: https://webpack.js.org/guides/public-path/
const relativeRootPath = (gon && gon.relative_url_root) || '';
const webpackAssetPath = `${relativeRootPath}/assets/webpack/`;
+ __webpack_public_path__ = webpackAssetPath; // eslint-disable-line camelcase
+
+ // monaco-editor-webpack-plugin currently (incorrectly) references the
+ // public path as a property of `window`. Once this is fixed upstream we
+ // can remove this line
+ // see: https://github.com/Microsoft/monaco-editor-webpack-plugin/pull/63
window.__webpack_public_path__ = webpackAssetPath; // eslint-disable-line
}