build(docker/frontend): remove deprecated and unsafe babel-preset-env dependency by tweaking babel config

This commit is contained in:
Sarah Vaupel 2024-09-02 16:02:33 +02:00
parent 0ecba9f829
commit 3fcb7d2b4e
4 changed files with 76 additions and 856 deletions

View File

@ -2,10 +2,7 @@ module.exports = (api) => {
api.cache(true);
const presets = [
["env", {
"useBuiltIns": "usage",
"targets": { "node": "current" },
}
[ '@babel/preset-env'
]
];

View File

@ -18,6 +18,7 @@ RUN npm install -g n
RUN n 20.17.0
# debug only, should display v20.17.0
# TODO: remove
RUN node --version
ARG PROJECT_DIR=/fradrive

925
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,6 @@
"autoprefixer": "^10.4.20",
"axios": "^1.7.5",
"babel-loader": "^9.1.3",
"babel-preset-env": "^1.7.0",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.2",