File tree Expand file tree Collapse file tree 3 files changed +645
-25
lines changed Expand file tree Collapse file tree 3 files changed +645
-25
lines changed Original file line number Diff line number Diff line change 183183 "timers-browserify" : " ^2.0.12" ,
184184 "typescript" : " ^5.8.2" ,
185185 "typescript-eslint" : " ^8.1.0" ,
186+ "unplugin-typed-css-modules" : " ^1.1.0" ,
186187 "url" : " ^0.11.1" ,
187188 "vitest" : " ^3.2.4" ,
188189 "webpack-bundle-analyzer" : " ^4.9.0"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { pluginNodePolyfill } from '@rsbuild/plugin-node-polyfill';
55import { pluginReact } from '@rsbuild/plugin-react' ;
66import { pluginSass } from '@rsbuild/plugin-sass' ;
77import { pluginSvgr } from '@rsbuild/plugin-svgr' ;
8+ import pluginTypedCssModules from 'unplugin-typed-css-modules/rspack' ;
89
910const { publicVars, rawPublicVars } = loadEnv ( { prefixes : [ 'REACT_APP_' ] } ) ;
1011
@@ -123,6 +124,7 @@ export default defineConfig({
123124
124125 config . plugins = [
125126 ...config . plugins ,
127+ pluginTypedCssModules ( { scss : true } ) ,
126128 new InjectManifest ( {
127129 swSrc : './src/service-worker.ts' ,
128130 swDest : 'service-worker.js' ,
You can’t perform that action at this time.
0 commit comments