Skip to content

Commit

Permalink
Merge pull request #4743 from dodona-edu/dependabot/npm_and_yarn/babe…
Browse files Browse the repository at this point in the history
…l/preset-env-7.22.4

Bump @babel/preset-env from 7.21.5 to 7.22.4
  • Loading branch information
bmesuere authored Jun 7, 2023
2 parents e37b1fe + f4af001 commit 0bd3616
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 224 deletions.
7 changes: 4 additions & 3 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ module.exports = function (api) {
}

return {
assumptions: {
setPublicClassFields: true,
privateFieldsAsProperties: true,
},
presets: [
isTestEnv && ["@babel/preset-env", { targets: { node: "current" } }],
(isProductionEnv || isDevelopmentEnv) && [
Expand All @@ -42,11 +46,8 @@ module.exports = function (api) {
isTestEnv && "babel-plugin-dynamic-import-node",
isDevelopmentEnv && ["istanbul", { include: ["app/assets/javascripts/**/*.{js,ts}"], coverageGlobalScopeFunc: false, coverageGlobalScope: "window" }],
"@babel/plugin-transform-destructuring",
["@babel/plugin-proposal-class-properties", { loose: true }],
["@babel/plugin-proposal-decorators", { decoratorsBeforeExport: true }],
["@babel/plugin-proposal-private-methods", { loose: true }],
["@babel/plugin-proposal-object-rest-spread", { useBuiltIns: true }],
["@babel/plugin-proposal-private-property-in-object", { loose: true }],
["@babel/plugin-transform-runtime", {
helpers: false,
regenerator: true,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"dependencies": {
"@babel/core": "^7.22.1",
"@babel/plugin-proposal-decorators": "^7.22.3",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-runtime": "^7.22.4",
"@babel/preset-env": "^7.21.5",
"@babel/preset-env": "^7.22.4",
"@babel/preset-typescript": "^7.21.5",
"@dodona/papyros": "^1.0.1",
"@popperjs/core": "^2.11.8",
Expand Down
Loading

0 comments on commit 0bd3616

Please sign in to comment.