mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] dependency update (#10589)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
253b577e46
commit
f81b273417
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user