Skip to content

Commit 7f3cf23

Browse files
committed
chore: update
1 parent b3ba4b7 commit 7f3cf23

File tree

5 files changed

+113
-103
lines changed

5 files changed

+113
-103
lines changed

examples/react-component-bundle-false/rslib.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import { type LibConfig, defineConfig } from '@rslib/core';
55
export default defineConfig({
66
source: {
77
entry: {
8-
index: [
9-
'./src/**',
10-
'!./src/env.d.ts'
11-
],
8+
index: ['./src/**', '!./src/env.d.ts'],
129
},
1310
},
1411
lib: [

examples/react-component-bundle-false/src/components/CounterButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2+
import logo from '../../assets/logo.svg';
23
import styles from './index.module.scss';
3-
import logo from '../../assets/logo.svg'
44

55
interface CounterButtonProps {
66
onClick: () => void;
@@ -12,7 +12,7 @@ export const CounterButton: React.FC<CounterButtonProps> = ({
1212
label,
1313
}) => (
1414
<button type="button" className={styles.button} onClick={onClick}>
15-
<img src={logo} alt='react'/>
15+
<img src={logo} alt="react" />
1616
{label}
1717
</button>
1818
);

examples/react-component-bundle/src/components/CounterButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2+
import logo from '../../assets/logo.svg';
23
import styles from './index.module.scss';
3-
import logo from '../../assets/logo.svg'
44

55
interface CounterButtonProps {
66
onClick: () => void;
@@ -12,7 +12,7 @@ export const CounterButton: React.FC<CounterButtonProps> = ({
1212
label,
1313
}) => (
1414
<button type="button" className={styles.button} onClick={onClick}>
15-
<img src={logo} alt='react'/>
15+
<img src={logo} alt="react" />
1616
{label}
1717
</button>
1818
);

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,15 @@
6363
"pnpm": ">=9.0.0"
6464
},
6565
"pnpm": {
66+
"peerDependencyRules": {
67+
"allowAny": [
68+
"@rspack/*"
69+
]
70+
},
6671
"overrides": {
67-
"zx>@types/node": "-",
68-
"@rspack/core": "/Users/bytedance/Documents/codes/rspack/packages/rspack"
72+
"@rspack/cli": "npm:@rspack-canary/[email protected]",
73+
"@rspack/core": "npm:@rspack-canary/[email protected]",
74+
"zx>@types/node": "-"
6975
}
7076
}
7177
}

0 commit comments

Comments
 (0)