[PM-6788][PM-7755] add babel/preset-env and browserslist (#9383)

* add babel present-env and browserslist

---------

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
This commit is contained in:
Will Martin 2024-05-30 18:42:26 -04:00 committed by GitHub
parent 85843c8baa
commit 868e0a5ac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 822 additions and 664 deletions

1
.browserslistrc Normal file
View File

@ -0,0 +1 @@
> 0.5%, last 3 major versions, Firefox ESR, not dead

View File

@ -66,8 +66,7 @@ const moduleRules = [
{ {
loader: "babel-loader", loader: "babel-loader",
options: { options: {
configFile: false, configFile: "../../babel.config.json",
plugins: ["@angular/compiler-cli/linker/babel"],
}, },
}, },
], ],

View File

@ -24,8 +24,7 @@ const common = {
{ {
loader: "babel-loader", loader: "babel-loader",
options: { options: {
configFile: false, configFile: "../../babel.config.json",
plugins: ["@angular/compiler-cli/linker/babel"],
}, },
}, },
], ],

View File

@ -68,8 +68,7 @@ const moduleRules = [
{ {
loader: "babel-loader", loader: "babel-loader",
options: { options: {
configFile: false, configFile: "../../babel.config.json",
plugins: ["@angular/compiler-cli/linker/babel"],
}, },
}, },
], ],

4
babel.config.json Normal file
View File

@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["@angular/compiler-cli/linker/babel"]
}

1468
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -41,6 +41,8 @@
"@angular/cli": "16.2.11", "@angular/cli": "16.2.11",
"@angular/compiler-cli": "16.2.12", "@angular/compiler-cli": "16.2.12",
"@angular/elements": "16.2.12", "@angular/elements": "16.2.12",
"@babel/core": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@compodoc/compodoc": "1.1.23", "@compodoc/compodoc": "1.1.23",
"@electron/notarize": "2.3.0", "@electron/notarize": "2.3.0",
"@electron/rebuild": "3.6.0", "@electron/rebuild": "3.6.0",
@ -83,7 +85,9 @@
"@webcomponents/custom-elements": "1.6.0", "@webcomponents/custom-elements": "1.6.0",
"@yao-pkg/pkg": "^5.11.5", "@yao-pkg/pkg": "^5.11.5",
"autoprefixer": "10.4.19", "autoprefixer": "10.4.19",
"babel-loader": "^9.1.3",
"base64-loader": "1.0.0", "base64-loader": "1.0.0",
"browserslist": "^4.23.0",
"chromatic": "10.9.6", "chromatic": "10.9.6",
"concurrently": "8.2.2", "concurrently": "8.2.2",
"copy-webpack-plugin": "12.0.2", "copy-webpack-plugin": "12.0.2",