mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 10:51:48 +08:00
Much further downwind when searching through file names, fuzzy-search and .includes requires that the fileName parameter is a string, not a number. This checks to make sure that the fileName is indeed a string, since webpack may sometimes return the module.id as a number. https://webpack.js.org/api/module-variables/#moduleid-commonjs