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: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,7 @@ Components({
176
176
177
177
Once the setup is done, a `components.d.ts` will be generated and updates automatically with the type definitions. Feel free to commit it into git or not as you want.
178
178
179
-
**Make sure you also add `components.d.ts` to your `tsconfig.json` under `includes`.**
179
+
> **Make sure you also add `components.d.ts` to your `tsconfig.json` under `includes`.**
180
180
181
181
## Importing from UI Libraries
182
182
@@ -342,6 +342,12 @@ Components({
342
342
// To install Babel, run: `npm install -D @babel/parser @babel/traverse`
343
343
directives: true,
344
344
345
+
// Transform path before resolving
346
+
importPathTransform: v=>v,
347
+
348
+
// Allow for components to override other components with the same name
0 commit comments