Rebuilt lock file and deps reduction

This commit is contained in:
Andrii V 2025-12-12 17:25:09 +01:00
parent 581367d1f6
commit 5e6502f25f
5 changed files with 1483 additions and 8412 deletions

View file

@ -1,4 +1,8 @@
{ {
"assumptions": {
"setPublicClassFields": true,
"privateFieldsAsProperties": true
},
"presets": [ "presets": [
[ [
"@babel/preset-env", "@babel/preset-env",
@ -8,16 +12,10 @@
}, },
"exclude": [ "exclude": [
"@babel/transform-classes", "@babel/transform-classes",
"@babel/plugin-transform-class-properties", "@babel/transform-regenerator",
"@babel/plugin-transform-private-methods", "@babel/transform-async-generator-functions"
"@babel/plugin-transform-private-property-in-object"
] ]
} }
] ]
],
"plugins": [
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-transform-private-methods", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
] ]
} }

View file

@ -160,10 +160,9 @@ docs-cleanup:
.PHONY: web-build .PHONY: web-build
# web-build: Build JS packages static/js # web-build: Build JS packages static/js
# TODO need to upgrade to webpack 5 and remove -e NODE_OPTIONS=--openssl-legacy-provider
web-build: web-build:
rm -rf node_modules rm -rf node_modules
docker run -it --rm -e NODE_OPTIONS=--openssl-legacy-provider -v $(PWD):/project --workdir=/project rhodecode/static-files-build:24 -c "npm install && /project/node_modules/.bin/grunt" docker run -it --rm -v $(PWD):/project --workdir=/project rhodecode/static-files-build:24 -c "npm install && /project/node_modules/.bin/grunt"
# run static file check # run static file check
./rhodecode/tests/scripts/static-file-check.sh rhodecode/public/ ./rhodecode/tests/scripts/static-file-check.sh rhodecode/public/
rm -rf node_modules rm -rf node_modules

9806
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,17 @@
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/

View file

@ -12,6 +12,10 @@ if (process.env.RC_STATIC_DIR) {
// doing it this way because it seems that plugin via grunt does not pick up .babelrc // doing it this way because it seems that plugin via grunt does not pick up .babelrc
let babelRCOptions = { let babelRCOptions = {
"assumptions": {
"setPublicClassFields": true,
"privateFieldsAsProperties": true
},
"presets": [ "presets": [
["@babel/preset-env", { ["@babel/preset-env", {
"targets": { "targets": {
@ -20,17 +24,9 @@ let babelRCOptions = {
"exclude": [ "exclude": [
"@babel/transform-classes", "@babel/transform-classes",
"@babel/transform-regenerator", "@babel/transform-regenerator",
"@babel/transform-async-generator-functions", "@babel/transform-async-generator-functions"
"@babel/plugin-transform-class-properties",
"@babel/plugin-transform-private-methods",
"@babel/plugin-transform-private-property-in-object"
] ]
}] }]
],
"plugins": [
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-transform-private-methods", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
] ]
}; };
@ -57,8 +53,8 @@ module.exports = {
module: { module: {
rules: [ rules: [
{ {
test: /style-lit.css/, test: /style-lit\.css$/,
use: 'raw-loader' type: 'asset/source'
}, },
{ {
// Babel-loader for JS files // Babel-loader for JS files
@ -67,8 +63,13 @@ module.exports = {
use: {loader: 'babel-loader', options: babelRCOptions} use: {loader: 'babel-loader', options: babelRCOptions}
}, },
{ {
test: /intl-messageformat.min.js/, test: /intl-messageformat\.min\.js$/,
use: 'imports-loader?this=>window' use: {
loader: 'imports-loader',
options: {
wrapper: 'window'
}
}
} }
] ]
}, },