Skip to content

Commit 068ae3c

Browse files
committed
chore: rebase
1 parent a8a436a commit 068ae3c

File tree

12 files changed

+46
-72
lines changed

12 files changed

+46
-72
lines changed

examples/react-component-bundle-false/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "@examples/react-component-bundle-false",
33
"private": true,
4+
"main": "./dist/cjs/index.js",
5+
"module": "./dist/esm/index.mjs",
6+
"types": "./dist/cjs/index.d.ts",
47
"scripts": {
58
"build": "rslib build"
69
},

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import { type LibConfig, defineConfig } from '@rslib/core';
44

55
const shared: LibConfig = {
66
bundle: false,
7-
// TODO: open dts
8-
// dts: {
9-
// bundle: false,
10-
// },
7+
dts: {
8+
bundle: false,
9+
},
1110
};
1211

1312
export default defineConfig({
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.button {
2-
background: blue;
2+
background: yellow;
33
}

examples/react-component-bundle-false/src/env.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
declare module '*.module.css' {
2-
const classes: { [key: string]: string };
3-
export default classes;
4-
}
5-
61
declare module '*.module.scss' {
72
const classes: { [key: string]: string };
83
export default classes;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.body {
2-
background: red;
1+
h2 {
2+
font-size: 50px;
33
}
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"baseUrl": ".",
5+
"declaration": true,
6+
"emitDeclarationOnly": true,
7+
"esModuleInterop": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"isolatedModules": true,
310
"jsx": "react-jsx",
11+
"lib": ["DOM", "ESNext"],
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"rootDir": "src",
15+
"skipLibCheck": true,
416
"strict": true
517
},
6-
"include": ["src/**/*"]
18+
"exclude": ["**/node_modules"],
19+
"include": ["src"]
720
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.button {
2-
background: blue;
2+
background: yellow;
33
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.body {
2-
background: red;
1+
h2 {
2+
font-size: 50px;
33
}
Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
{
22
"compilerOptions": {
3+
"allowJs": true,
4+
"baseUrl": ".",
5+
"declaration": true,
6+
"emitDeclarationOnly": true,
7+
"esModuleInterop": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"isolatedModules": true,
310
"jsx": "react-jsx",
4-
"strict": true,
5-
"skipLibCheck": true
11+
"lib": ["DOM", "ESNext"],
12+
"moduleResolution": "node",
13+
"resolveJsonModule": true,
14+
"rootDir": "src",
15+
"skipLibCheck": true,
16+
"strict": true
617
},
7-
"include": ["src/**/*"]
18+
"exclude": ["**/node_modules"],
19+
"include": ["src"]
820
}

packages/lib-css-extract-loader/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rslib/lib-css-extract-loader",
3-
"version": "0.0.5",
3+
"version": "0.0.8",
44
"description": "lib-css-extract-loader poc",
55
"homepage": "https://rslib.dev",
66
"bugs": {
@@ -33,11 +33,10 @@
3333
"dev": "rslib build --watch"
3434
},
3535
"devDependencies": {
36-
"@microsoft/api-extractor": "^7.47.9",
3736
"@rsbuild/core": "1.0.7",
3837
"@rslib/tsconfig": "workspace:*",
3938
"@rspack/core": "1.0.7",
40-
"rslib": "npm:@rslib/[email protected].7",
39+
"rslib": "npm:@rslib/[email protected].8",
4140
"typescript": "^5.6.2"
4241
},
4342
"peerDependenciesMeta": {

pnpm-lock.yaml

Lines changed: 2 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/e2e/react-component/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Counter } from '@examples/react-component';
1+
import { Counter } from '@examples/react-component-bundle-false';
22

33
const App = () => (
44
<div>

0 commit comments

Comments
 (0)