feat(infra): migrate to rsbuild

This commit is contained in:
deytenit committed 2026-02-12 23:39:20 +03:00
1 parent 97c6347f2e
commit 4628c043ce
95 files changed
+5582 -11282

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
import { definePackageConfig } from '@ermnvldmr/rsbuild-config';
export default definePackageConfig({
source: {
entry: {
index: './src/index.ts',
},
alias: {
'@': './src',
},
},
output: {
target: 'web',
distPath: {
root: 'dist',
js: '',
},
filename: {
js: 'index.js',
},
cleanDistPath: true,
},
tools: {
htmlPlugin: false,
rspack: {
output: {
library: {
type: 'module',
},
},
experiments: {
outputModule: true,
},
externals: [
'react',
'react-dom',
'react/jsx-runtime',
'react/jsx-dev-runtime',
'tailwindcss',
'clsx',
'tailwind-merge',
],
externalsType: 'module',
},
},
});