Tags: JohnnyMa/react-styleguidist
Tags
Fix: Fix incorrect component name capitalization (styleguidist#1388) Fixes styleguidist#1381 It is happening in a case when react-docgen (any propsParser) is failed and we are trying to guess displayName based on file path. We capitalized every case in the string instead of just words separated by `-` started with small letter. So, by mistake `ButtonTS` in file name becomes `ButtonTs` display name for component when we expect `ButtonTS` Use [startCase]:(https://lodash.com/docs/4.17.11#startCase) and then remove spaces which covers most our cases likemy-buttonTS => MyButtonTS
Fix: Encode sublinks in URLs to fix broken routes (styleguidist#1389) Follow up of styleguidist#1332. This appears to have fixed the top level section link, but any sub-links within that section are still unencoded and result in "Page not found".
Fix: Add .wasm and .mjs to default extensions in webpack config (styl… …eguidist#1386) Fixes styleguidist#1385
Fix: Replace 'walkes' with 'estree-walker' (styleguidist#1349) Because walkes has LGPL-3 license. Fixes styleguidist#1210
Fix: Encode section pages URLs if a section name has special symbols (s… …tyleguidist#1384) Closes styleguidist#1332
Fix: Fix named export for example components (styleguidist#1380) Closes styleguidist#1281
Fix: to make async/await work by default (styleguidist#1379) Add transforms: { asyncAwait: false } for default compilerConfig to make async/await work by default. Bublé doesn't have transform for async/await so they raise an error if asyncAwait transformation in configuration is not false (true by default) since bublé v0.9.7. Closes styleguidist#1371
Fix: Add .ts and .tsx to default extensions in webpack config styleguidist#750
Fix: A build should't break when assetsDir is an array (styleguidist#… …1367) copy-webpack-plugin is not allowed `from` to be as an array. If we still want to use `from` and support array format for assetsDir, then we should pass array of objects `{from: ...}` to the plugin. Closes styleguidist#1320
PreviousNext