Frontend: Update deps in package.json and package-lock.json

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-01-19 15:16:01 +01:00
parent 966c421cd4
commit e5cf00e050
7 changed files with 52 additions and 87 deletions

View File

@@ -130,10 +130,7 @@ const config = {
sourceMap: isDev,
compact: false,
presets: ["@babel/preset-env"],
plugins: [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties",
],
plugins: [],
},
},
],
@@ -253,12 +250,13 @@ if (isDev) {
config.plugins.push(devToolPlugin);
const esLintPlugin = new ESLintPlugin({
formatter: require("eslint-formatter-pretty"),
extensions: ["js"],
import("eslint-formatter-pretty").then(() => {
const esLintPlugin = new ESLintPlugin({
formatter: "eslint-formatter-pretty",
extensions: ["js"],
});
config.plugins.push(esLintPlugin);
});
config.plugins.push(esLintPlugin);
}
module.exports = config;