mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
## About The Pull Request Revival of #79943. I was not done with Babel. For some reason, swc was running very high memory. It was the minifier. If we use our current, only swapping out babel (the previous PR swapped the minifier AND transpiler), we not only keep the memory usage down to current levels but we **slash** TGUI build times. Look at these numbers! <details> <summary>Test environment / My specs</summary> intel i7-13700kf 32GB RAM windows 11 intel 660p m.2 SSD asus 4080 TUF series </details> <details> <summary>Benchmarks</summary> ### To perform these tests, build/install/compile once, then delete everything in the tgui/.yarn/webpack folder and all files in tgui/public **EXCEPT** tgui.html and tgui-polyfill.min.js Babel is our CURRENT. Build time  SWC is 64.36% faster than our current solution Peak memory usage  </details> What's the catch? Do we need to use node_modules now? No! ## Why It's Good For The Game Faster build tools! ## Changelog N/A nothing player facing
16 lines
485 B
JavaScript
16 lines
485 B
JavaScript
module.exports = {
|
|
roots: ['<rootDir>/packages'],
|
|
testMatch: [
|
|
'<rootDir>/packages/**/__tests__/*.{js,ts,tsx}',
|
|
'<rootDir>/packages/**/*.{spec,test}.{js,ts,tsx}',
|
|
],
|
|
testPathIgnorePatterns: ['<rootDir>/packages/tgui-bench'],
|
|
testEnvironment: 'jsdom',
|
|
testRunner: require.resolve('jest-circus/runner'),
|
|
transform: {
|
|
'^.+\\.(js|cjs|ts|tsx)$': require.resolve('@swc/jest'),
|
|
},
|
|
moduleFileExtensions: ['js', 'cjs', 'ts', 'tsx', 'json'],
|
|
resetMocks: true,
|
|
};
|