mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Re-creation of https://github.com/Aurorastation/Aurora.3/pull/21046 to skip merge conflict hell. Brings us modern TGUI. **ALTERNATE TITLE: TGUI HELLSCAPE PR ABANDON ALL HOPE YE WHO ENTER HERE** - [x] Migrate build tools (javascript -> typescript, bun for package management). - [x] Upgrade all TGUI dependencies and associated root files to TG-congruent versions (axios, babel, dompurify, eslint, highlight, marked, prettier, sass, source-map, stacktrace-parser, typescript). - [x] InfernoJS -> React migrations - [x] React cleanup and polish (migrate all remaining .js files to appropriate .ts or .tsx filetype, all remaining hooks, linting, error corrections, etc.) - [ ] Test all remaining TGUI interfaces
30 lines
710 B
TypeScript
30 lines
710 B
TypeScript
import path from 'node:path';
|
|
|
|
import rspack, { type Configuration } from '@rspack/core';
|
|
|
|
import oldConfig, { createStats } from './rspack.config';
|
|
|
|
export const config = {
|
|
...oldConfig,
|
|
devtool: 'cheap-module-source-map',
|
|
devServer: {
|
|
hot: true,
|
|
},
|
|
mode: 'development',
|
|
output: {
|
|
...oldConfig.output,
|
|
path: path.resolve(import.meta.dirname, './public/.tmp'),
|
|
},
|
|
plugins: [
|
|
new rspack.CssExtractRspackPlugin({
|
|
chunkFilename: '[name].bundle.css',
|
|
filename: '[name].bundle.css',
|
|
}),
|
|
new rspack.EnvironmentPlugin({
|
|
NODE_ENV: 'development',
|
|
}),
|
|
new rspack.HotModuleReplacementPlugin(),
|
|
],
|
|
stats: createStats(false),
|
|
} satisfies Configuration;
|