Skip to content

Commit 6fe5f9d

Browse files
committed
chore: rslib react plugin
1 parent db06bdf commit 6fe5f9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rslib.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from '@rslib/core';
2+
import { pluginReact } from '@rsbuild/plugin-react';
23

34
export default defineConfig({
45
lib: [
@@ -12,5 +13,11 @@ export default defineConfig({
1213
syntax: 'es2021',
1314
},
1415
],
16+
source: {
17+
entry: {
18+
index: './src',
19+
},
20+
},
1521
output: { target: 'web' },
22+
plugins: [pluginReact()],
1623
});

0 commit comments

Comments
 (0)