3 Commits

Author SHA1 Message Date
Michael Shilman
971809db71 Source-loader: Handle includeStories/excludeStories in CSF 2019-12-09 16:45:55 +08:00
Shota Fuji
d9fad400a1
Source-loader: Support function declaration exports
Added support for named exports with function declaration in
source-loader, in order to fix that the story's source code doesn't show
up in Docs mode's code preview.

The changes in generate-helpers.js is necessary because we can't wrap
named export functions:

```
export function foo() {}

// turns into this if we just wrapped it

export wrapper(function foo() {}) // syntax error!
```
2019-12-07 11:43:45 +00:00
Adolfo Panizo
e878516e65 Add unit test for TS - CSF source loader 2019-10-17 11:37:25 +02:00