Skip to content

Commit 1fb8fe5

Browse files
committed
feat: 兼容react19
1 parent 12496f0 commit 1fb8fe5

2 files changed

Lines changed: 11 additions & 17 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.9",
2+
"version": "1.0.10",
33
"license": "MIT",
44
"main": "dist/cjs/index.js",
55
"module": "dist/esm/index.mjs",

rslib.config.ts

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,32 @@
1-
import { pluginReact } from '@rsbuild/plugin-react';
2-
import { defineConfig } from '@rslib/core';
3-
4-
const shared = {
5-
dts: {
6-
bundle: false,
7-
},
8-
};
1+
import { pluginReact } from "@rsbuild/plugin-react";
2+
import { defineConfig } from "@rslib/core";
93

104
export default defineConfig({
115
lib: [
126
{
13-
...shared,
14-
format: 'esm',
7+
format: "esm",
8+
bundle: false,
159
output: {
1610
distPath: {
17-
root: './dist/esm',
11+
root: "./dist/esm",
1812
},
1913
},
2014
},
2115
{
22-
...shared,
23-
format: 'cjs',
16+
format: "cjs",
17+
bundle: false,
2418
output: {
2519
distPath: {
26-
root: './dist/cjs',
20+
root: "./dist/cjs",
2721
},
2822
},
2923
},
3024
],
3125
plugins: [
3226
pluginReact({
3327
swcReactOptions: {
34-
runtime: 'automatic',
28+
runtime: "automatic",
3529
},
3630
}),
3731
],
38-
});
32+
});

0 commit comments

Comments
 (0)