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:
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 8b45b25a328..2977b1ce712 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -184,11 +184,6 @@ function generateEntries() {
const alias = {
// Map Apollo client to apollo/client/core to prevent react related imports from being loaded
'@apollo/client$': '@apollo/client/core',
- // Map Sentry calls to use local wrapper
- '@sentry/browser$': path.join(
- ROOT_PATH,
- 'app/assets/javascripts/sentry/sentry_browser_wrapper.js',
- ),
'~': path.join(ROOT_PATH, 'app/assets/javascripts'),
emojis: path.join(ROOT_PATH, 'fixtures/emojis'),
images: path.join(ROOT_PATH, 'app/assets/images'),
@@ -388,6 +383,15 @@ module.exports = {
loader: 'babel-loader',
},
{
+ test: /swagger-ui-dist\/.*\.js?$/,
+ include: /node_modules/,
+ loader: 'babel-loader',
+ options: {
+ plugins: ['@babel/plugin-proposal-logical-assignment-operators'],
+ ...defaultJsOptions,
+ },
+ },
+ {
test: /\.(js|cjs)$/,
exclude: shouldExcludeFromCompliling,
use: [