Skip to content

Commit

Permalink
[PM-6788][PM-7755] add babel/preset-env and browserslist (#9383)
Browse files Browse the repository at this point in the history
* add babel present-env and browserslist

---------

Co-authored-by: Oscar Hinton <[email protected]>
  • Loading branch information
willmartian and Hinton authored May 30, 2024
1 parent 85843c8 commit 868e0a5
Show file tree
Hide file tree
Showing 7 changed files with 844 additions and 686 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
> 0.5%, last 3 major versions, Firefox ESR, not dead
3 changes: 1 addition & 2 deletions apps/browser/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ const moduleRules = [
{
loader: "babel-loader",
options: {
configFile: false,
plugins: ["@angular/compiler-cli/linker/babel"],
configFile: "../../babel.config.json",
},
},
],
Expand Down
3 changes: 1 addition & 2 deletions apps/desktop/webpack.renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ const common = {
{
loader: "babel-loader",
options: {
configFile: false,
plugins: ["@angular/compiler-cli/linker/babel"],
configFile: "../../babel.config.json",
},
},
],
Expand Down
3 changes: 1 addition & 2 deletions apps/web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ const moduleRules = [
{
loader: "babel-loader",
options: {
configFile: false,
plugins: ["@angular/compiler-cli/linker/babel"],
configFile: "../../babel.config.json",
},
},
],
Expand Down
4 changes: 4 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["@angular/compiler-cli/linker/babel"]
}
1,512 changes: 832 additions & 680 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 868e0a5

Please sign in to comment.