Files
.profile/rsbuild.config.ts
2025-08-02 15:55:08 -05:00

57 lines
995 B
TypeScript

import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
export default defineConfig({
// configure Rsbuild plugins
plugins: [
pluginReact({ fastRefresh: true, })
],
// options for build performance and runtime performance
performance: {
buildCache: true,
removeConsole: true
},
// options for build outputs
output: {
},
// options for local development
dev: {
liveReload: true,
hmr: true,
lazyCompilation: true,
},
// options for HTML generation
html: {
},
// options for the low-level tools
tools: {
},
// options for module resolution
resolve: {
},
// options for input source code
source: {
},
// options for the Rsbuild server,
// will take effect during local development and preview
server: {
open: false,
},
// options for Web security
security: {
},
// define different Rsbuild configurations for each environment
environments: {
},
});