Don't add babel plugins now added by upstream again in babel.config.js

This commit is contained in:
Pirate Praveen 2021-10-03 02:21:26 +05:30
parent 11639f79c4
commit 444b1e740b

View file

@ -2,7 +2,6 @@ Use debian packaged node modules when available
- Exclude packaged modules from transpiling - Exclude packaged modules from transpiling
- Remove webpack-bundle-analyzer - Remove webpack-bundle-analyzer
- Resolve .json files - Resolve .json files
- Add more plugins to babel.config.js
- Add mkdirp 1.0 and loader-utils 2.0 to ensure compatibility for packaged - Add mkdirp 1.0 and loader-utils 2.0 to ensure compatibility for packaged
modules (See #976310) modules (See #976310)
- Use link protocol for modules with permission issues (which has a bin: entry - 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", "worker-loader": "^2.0.0",
--- a/babel.config.js --- a/babel.config.js
+++ b/babel.config.js +++ b/babel.config.js
@@ -14,9 +14,12 @@ @@ -14,6 +14,7 @@
// include stage 3 proposals // include stage 3 proposals
const plugins = [ const plugins = [
'@babel/plugin-syntax-import-meta', '@babel/plugin-syntax-import-meta',
@ -229,11 +228,6 @@ Use debian packaged node modules when available
'@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-json-strings', '@babel/plugin-proposal-json-strings',
'@babel/plugin-proposal-private-methods', '@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 --- a/app/assets/javascripts/pdf/index.vue
+++ b/app/assets/javascripts/pdf/index.vue +++ b/app/assets/javascripts/pdf/index.vue
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@