Skip to content

Commit 23c977b

Browse files
committed
Add generator dependency
1 parent 7127ed0 commit 23c977b

File tree

3 files changed

+645
-25
lines changed

3 files changed

+645
-25
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
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"

rsbuild.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { pluginNodePolyfill } from '@rsbuild/plugin-node-polyfill';
55
import { pluginReact } from '@rsbuild/plugin-react';
66
import { pluginSass } from '@rsbuild/plugin-sass';
77
import { pluginSvgr } from '@rsbuild/plugin-svgr';
8+
import pluginTypedCssModules from 'unplugin-typed-css-modules/rspack';
89

910
const { 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',

0 commit comments

Comments
 (0)