[MIRROR] dependency update (#10589)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-04 14:17:03 -07:00
committed by GitHub
parent 253b577e46
commit f81b273417
24 changed files with 594 additions and 894 deletions

View File

@@ -31,9 +31,9 @@ module.exports = (env = {}, argv) => {
context: path.resolve(__dirname),
target: ['web', 'browserslist:last 2 Edge versions'],
entry: {
tgui: ['./packages/tgui-polyfill', './packages/tgui'],
'tgui-panel': ['./packages/tgui-polyfill', './packages/tgui-panel'],
'tgui-say': ['./packages/tgui-polyfill', './packages/tgui-say'],
tgui: './packages/tgui',
'tgui-panel': './packages/tgui-panel',
'tgui-say': './packages/tgui-say',
},
output: {
path: argv.useTmpFolder
@@ -52,7 +52,7 @@ module.exports = (env = {}, argv) => {
rules: [
{
test: /\.([tj]s(x)?|cjs)$/,
exclude: /node_modules[\\/]core-js/,
exclude: /node_modules/,
use: [
{
loader: require.resolve('swc-loader'),
@@ -122,13 +122,20 @@ module.exports = (env = {}, argv) => {
if (bench) {
config.entry = {
'tgui-bench': [
'./packages/tgui-polyfill',
'./packages/tgui-bench/entrypoint',
],
'tgui-bench': './packages/tgui-bench/entrypoint',
};
}
// Production build specific options
if (mode === 'production') {
const { EsbuildPlugin } = require('esbuild-loader');
config.optimization.minimizer = [
new EsbuildPlugin({
css: true,
}),
];
}
// Development build specific options
if (mode !== 'production') {
config.devtool = 'cheap-module-source-map';