From 444b1e740bebd6221f3c83b02106a6d24f229cbc Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Sun, 3 Oct 2021 02:21:26 +0530 Subject: [PATCH] Don't add babel plugins now added by upstream again in babel.config.js --- debian/patches/0740-use-packaged-modules.patch | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/debian/patches/0740-use-packaged-modules.patch b/debian/patches/0740-use-packaged-modules.patch index 4cce512347..9c2caeea23 100644 --- a/debian/patches/0740-use-packaged-modules.patch +++ b/debian/patches/0740-use-packaged-modules.patch @@ -2,7 +2,6 @@ Use debian packaged node modules when available - Exclude packaged modules from transpiling - Remove webpack-bundle-analyzer - Resolve .json files - - Add more plugins to babel.config.js - Add mkdirp 1.0 and loader-utils 2.0 to ensure compatibility for packaged modules (See #976310) - Use link protocol for modules with permission issues (which has a bin: entry @@ -221,7 +220,7 @@ Use debian packaged node modules when available "worker-loader": "^2.0.0", --- a/babel.config.js +++ b/babel.config.js -@@ -14,9 +14,12 @@ +@@ -14,6 +14,7 @@ // include stage 3 proposals const plugins = [ '@babel/plugin-syntax-import-meta', @@ -229,11 +228,6 @@ Use debian packaged node modules when available '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-json-strings', '@babel/plugin-proposal-private-methods', -+ '@babel/plugin-proposal-optional-chaining', -+ '@babel/plugin-proposal-nullish-coalescing-operator', - // See: https://gitlab.com/gitlab-org/gitlab/-/issues/229146 - '@babel/plugin-transform-arrow-functions', - // See: https://gitlab.com/gitlab-org/gitlab/-/issues/336216 --- a/app/assets/javascripts/pdf/index.vue +++ b/app/assets/javascripts/pdf/index.vue @@ -1,6 +1,6 @@