diff --git a/build-scripts/webpack.cjs b/build-scripts/webpack.cjs index b08d3b2eeb50..0679e3e2baec 100644 --- a/build-scripts/webpack.cjs +++ b/build-scripts/webpack.cjs @@ -10,6 +10,7 @@ const WebpackBar = require("webpackbar"); const { TransformAsyncModulesPlugin, } = require("transform-async-modules-webpack-plugin"); +const { dependencies } = require("../package.json"); const paths = require("./paths.cjs"); const bundle = require("./bundle.cjs"); @@ -156,7 +157,10 @@ const createWebpackConfig = ({ transform: (stats) => JSON.stringify(filterStats(stats)), }), !latestBuild && - new TransformAsyncModulesPlugin({ browserslistEnv: "legacy" }), + new TransformAsyncModulesPlugin({ + browserslistEnv: "legacy", + runtime: { version: dependencies["@babel/runtime"] }, + }), ].filter(Boolean), resolve: { extensions: [".ts", ".js", ".json"], diff --git a/package.json b/package.json index 542c74ab36d9..6203e07435bf 100644 --- a/package.json +++ b/package.json @@ -235,9 +235,9 @@ "sinon": "17.0.1", "source-map-url": "0.4.1", "systemjs": "6.15.1", - "tar": "7.0.1", + "tar": "7.1.0", "terser-webpack-plugin": "5.3.10", - "transform-async-modules-webpack-plugin": "1.1.0", + "transform-async-modules-webpack-plugin": "1.1.1", "ts-lit-plugin": "2.0.2", "typescript": "5.4.5", "webpack": "5.91.0", diff --git a/yarn.lock b/yarn.lock index 56bef135f3c2..058fd1d5ef35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9104,10 +9104,10 @@ __metadata: stacktrace-js: "npm:2.0.2" superstruct: "npm:1.0.4" systemjs: "npm:6.15.1" - tar: "npm:7.0.1" + tar: "npm:7.1.0" terser-webpack-plugin: "npm:5.3.10" tinykeys: "npm:2.1.0" - transform-async-modules-webpack-plugin: "npm:1.1.0" + transform-async-modules-webpack-plugin: "npm:1.1.1" ts-lit-plugin: "npm:2.0.2" tsparticles-engine: "npm:2.12.0" tsparticles-preset-links: "npm:2.12.0" @@ -11113,10 +11113,10 @@ __metadata: languageName: node linkType: hard -"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.2, minipass@npm:^7.0.3, minipass@npm:^7.0.4": - version: 7.0.4 - resolution: "minipass@npm:7.0.4" - checksum: 10/e864bd02ceb5e0707696d58f7ce3a0b89233f0d686ef0d447a66db705c0846a8dc6f34865cd85256c1472ff623665f616b90b8ff58058b2ad996c5de747d2d18 +"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.2, minipass@npm:^7.0.3, minipass@npm:^7.0.4, minipass@npm:^7.1.0": + version: 7.1.0 + resolution: "minipass@npm:7.1.0" + checksum: 10/0cfc1bc95bfce2a0cf69fcb5e7b92f62ee7159f2787356e66b5804dba73546e1653bbc70bf9bb32acb031e6d0d4b6249628a014644a597a7e4a14b441a510ba5 languageName: node linkType: hard @@ -13696,17 +13696,17 @@ __metadata: languageName: node linkType: hard -"tar@npm:7.0.1": - version: 7.0.1 - resolution: "tar@npm:7.0.1" +"tar@npm:7.1.0": + version: 7.1.0 + resolution: "tar@npm:7.1.0" dependencies: "@isaacs/fs-minipass": "npm:^4.0.0" chownr: "npm:^3.0.0" - minipass: "npm:^5.0.0" + minipass: "npm:^7.1.0" minizlib: "npm:^3.0.1" mkdirp: "npm:^3.0.1" yallist: "npm:^5.0.0" - checksum: 10/6fd89ef8051d12975f66a2f3932a80479bdc6c9f3bcdf04b8b57784e942ed860708ccecf79bcbb30659b14ab52eef2095d2c3af377545ff9df30de28036671dc + checksum: 10/87c2caa631dcf212cc50cc7fc4402b429d9083cf76f21d9ec63eba7a703b78804b2185bbe072f4c6cac8263dc8e7df786dfdfd53ef5bfbf7b46b480535794ea5 languageName: node linkType: hard @@ -13922,9 +13922,9 @@ __metadata: languageName: node linkType: hard -"transform-async-modules-webpack-plugin@npm:1.1.0": - version: 1.1.0 - resolution: "transform-async-modules-webpack-plugin@npm:1.1.0" +"transform-async-modules-webpack-plugin@npm:1.1.1": + version: 1.1.1 + resolution: "transform-async-modules-webpack-plugin@npm:1.1.1" dependencies: "@babel/core": "npm:^7.13.0" "@babel/plugin-transform-runtime": "npm:^7.13.0" @@ -13935,7 +13935,7 @@ __metadata: "@babel/preset-env": ^7.13.0 "@babel/runtime": ^7.13.0 webpack: ^5.0.0 - checksum: 10/35e729c8ed44bf7cf5b6ae6e4ea5eb82eef44038ec13fba0a53eec551095be5553e3c99c6c7dec37d6b1fd3c9e04f35e94a246f735c81fb2d247dfad21678322 + checksum: 10/dbae9102100519ac124a55068e9de8096a2cb94153bce58b3b3ed64482f88c24430b7daa8397b32685e080a5c61da8aacabc3431400fc620323c7eeffa2bbab5 languageName: node linkType: hard