Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(preset-typescript): don't default to empty include option #106

Merged
merged 1 commit into from
Mar 5, 2020

Conversation

stefanprobst
Copy link
Contributor

Since #73 the include option for the typescript loader defaults to an empty array, which essentially makes it required ([] never matches). This PR only adds include to the loader if something was provided in the addons config.
Alternative approach: clarify in readme that include is not an advanced option but required.

@graup
Copy link
Contributor

graup commented Feb 28, 2020

@shilman This makes sense to me. Will have to merge with #68 which removes the react-docgen-typescript-loader part.

graup added a commit to graup/presets that referenced this pull request Feb 28, 2020
- remove ts docgen loader (rollup storybookjs#103)
- don't default to empty include option (rollup storybookjs#106)
- add appendTsSuffixTo to tsLoader options if framework is vue
graup added a commit to graup/presets that referenced this pull request Feb 28, 2020
- Remove `react-typescript-docgen-loader` from `preset-typescript` (rollup storybookjs#68)
- Don't default to empty include option (rollup storybookjs#106)
- Add appendTsSuffixTo to tsLoader options if framework is vue
@shilman shilman added bug Something isn't working typescript labels Mar 4, 2020
@shilman shilman merged commit bcd24e7 into storybookjs:master Mar 5, 2020
graup added a commit to graup/presets that referenced this pull request Mar 5, 2020
- Remove `react-typescript-docgen-loader` from `preset-typescript` (rollup storybookjs#68)
- Don't default to empty include option (rollup storybookjs#106)
- Add appendTsSuffixTo to tsLoader options if framework is vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants