We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2871f37 commit 6b38dbeCopy full SHA for 6b38dbe
.storybook/blocks/utilities.js
@@ -25,8 +25,11 @@ try {
25
}
26
27
/**
28
- * Gets all component directories that have a specific status
29
- * Only works in Node.js environment
+ * Gets all component directories that have a specific status.
+ * This is a Storybook-facing "wrapper" that defers the actual work to the
30
+ * Node.js script in tasks/migrated-component-scanner.js. In this browser this
31
+ * wrapper returns an empty array and prevents bundlers from pulling in fs/path
32
+ * and avoiding runtime errors.
33
* @param {Object} options Options for filtering components
34
* @param {string} options.statusType Status type to filter by (e.g., 'migrated')
35
* @returns {string[]} Array of matching component directory names
0 commit comments