You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework-integration/react.md
+46-16
Original file line number
Diff line number
Diff line change
@@ -395,13 +395,13 @@ export default App;
395
395
396
396
## API
397
397
398
-
### esModule
398
+
### outDir
399
399
400
-
**Optional**
400
+
**Required**
401
401
402
-
**Type: `boolean`**
402
+
**Type: `string`**
403
403
404
-
If `true`, the output target will generate a separate ES module for each React component wrapper. Defaults to `false`.
404
+
The directory where the React components will be generated. Accepts a relative path from the Stencil project's root directory.
405
405
406
406
### excludeComponents
407
407
@@ -411,29 +411,23 @@ If `true`, the output target will generate a separate ES module for each React c
411
411
412
412
An array of component tag names to exclude from the React output target. Useful if you want to prevent certain web components from being in the React library.
413
413
414
-
### experimentalUseClient
414
+
### stencilPackageName
415
415
416
416
**Optional**
417
417
418
-
**Type: `boolean`**
419
-
420
-
If `true`, the generated output target will include the [use client;](https://react.dev/reference/react/use-client) directive.
421
-
422
-
### outDir
423
-
424
-
**Required**
425
-
426
418
**Type: `string`**
427
419
428
-
The directory where the React components will be generated. Accepts a relative path from the Stencil project's root directory.
420
+
The name of the package that exports the Stencil components. Defaults to the `package.json` detected by the Stencil compiler.
429
421
430
-
### stencilPackageName
422
+
### customElementsDir
431
423
432
424
**Optional**
433
425
434
426
**Type: `string`**
435
427
436
-
The name of the package that exports the Stencil components. Defaults to the package.json detected by the Stencil compiler.
428
+
The directory where the custom elements are saved.
429
+
430
+
This value is automatically detected from the Stencil configuration file for the dist-custom-elements output target. If you are working in an environment that uses absolute paths, consider setting this value manually.
437
431
438
432
### hydrateModule
439
433
@@ -477,6 +471,42 @@ frameworks. This may be useful if you would like to generally ignore some compon
477
471
rendered on the server or if you like roll out SSR support for your design system one component at
478
472
a time.
479
473
474
+
### esModules
475
+
476
+
**Optional**
477
+
478
+
**Default: `true`**
479
+
480
+
**Type: `boolean`**
481
+
482
+
If `true`, the output target will generate a separate ES module for each React component wrapper. Defaults to `false`.
Copy file name to clipboardExpand all lines: versioned_docs/version-v4.29/framework-integration/react.md
+47-17
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ In your `react-library` project, create a project specific `tsconfig.json` that
163
163
"moduleResolution": "bundler",
164
164
"skipLibCheck": true,
165
165
"jsx": "react",
166
-
"allowSyntheticDefaultImports": true,
166
+
167
167
"declarationDir": "./dist/types"
168
168
},
169
169
"include": ["lib"],
@@ -395,13 +395,13 @@ export default App;
395
395
396
396
## API
397
397
398
-
### esModule
398
+
### outDir
399
399
400
-
**Optional**
400
+
**Required**
401
401
402
-
**Type: `boolean`**
402
+
**Type: `string`**
403
403
404
-
If `true`, the output target will generate a separate ES module for each React component wrapper. Defaults to `false`.
404
+
The directory where the React components will be generated. Accepts a relative path from the Stencil project's root directory.
405
405
406
406
### excludeComponents
407
407
@@ -411,29 +411,23 @@ If `true`, the output target will generate a separate ES module for each React c
411
411
412
412
An array of component tag names to exclude from the React output target. Useful if you want to prevent certain web components from being in the React library.
413
413
414
-
### experimentalUseClient
414
+
### stencilPackageName
415
415
416
416
**Optional**
417
417
418
-
**Type: `boolean`**
419
-
420
-
If `true`, the generated output target will include the [use client;](https://react.dev/reference/react/use-client) directive.
421
-
422
-
### outDir
423
-
424
-
**Required**
425
-
426
418
**Type: `string`**
427
419
428
-
The directory where the React components will be generated. Accepts a relative path from the Stencil project's root directory.
420
+
The name of the package that exports the Stencil components. Defaults to the `package.json` detected by the Stencil compiler.
429
421
430
-
### stencilPackageName
422
+
### customElementsDir
431
423
432
424
**Optional**
433
425
434
426
**Type: `string`**
435
427
436
-
The name of the package that exports the Stencil components. Defaults to the package.json detected by the Stencil compiler.
428
+
The directory where the custom elements are saved.
429
+
430
+
This value is automatically detected from the Stencil configuration file for the dist-custom-elements output target. If you are working in an environment that uses absolute paths, consider setting this value manually.
437
431
438
432
### hydrateModule
439
433
@@ -477,6 +471,42 @@ frameworks. This may be useful if you would like to generally ignore some compon
477
471
rendered on the server or if you like roll out SSR support for your design system one component at
478
472
a time.
479
473
474
+
### esModules
475
+
476
+
**Optional**
477
+
478
+
**Default: `true`**
479
+
480
+
**Type: `boolean`**
481
+
482
+
If `true`, the output target will generate a separate ES module for each React component wrapper. Defaults to `false`.
0 commit comments