Browse Source

[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>
pull/9448/head
Will Martin 2 years ago committed by GitHub
parent
commit
868e0a5ac9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      .browserslistrc
  2. 3
      apps/browser/webpack.config.js
  3. 3
      apps/desktop/webpack.renderer.js
  4. 3
      apps/web/webpack.config.js
  5. 4
      babel.config.json
  6. 1512
      package-lock.json
  7. 4
      package.json

1
.browserslistrc

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

3
apps/browser/webpack.config.js

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

3
apps/desktop/webpack.renderer.js

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

3
apps/web/webpack.config.js

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

4
babel.config.json

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

1512
package-lock.json generated

File diff suppressed because it is too large Load Diff

4
package.json

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

Loading…
Cancel
Save