[MIRROR] tgui 516 (#10158)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-14 06:35:23 -07:00
committed by GitHub
parent 021ac2b32d
commit bb759b294c
422 changed files with 1193 additions and 1595 deletions

View File

@@ -29,7 +29,7 @@ module.exports = (env = {}, argv) => {
const config = {
mode: mode === 'production' ? 'production' : 'development',
context: path.resolve(__dirname),
target: ['web', 'es5', 'browserslist:ie 11'],
target: ['web', 'browserslist:last 2 Edge versions'],
entry: {
tgui: ['./packages/tgui-polyfill', './packages/tgui'],
'tgui-panel': ['./packages/tgui-polyfill', './packages/tgui-panel'],
@@ -129,17 +129,6 @@ module.exports = (env = {}, argv) => {
};
}
// Production build specific options
if (mode === 'production') {
const { EsbuildPlugin } = require('esbuild-loader');
config.optimization.minimizer = [
new EsbuildPlugin({
target: 'ie11',
css: true,
}),
];
}
// Development build specific options
if (mode !== 'production') {
config.devtool = 'cheap-module-source-map';