strothj / react-docgen-typescript-loader

Webpack loader to generate docgen information from Typescript React components.
Other
360 stars 47 forks source link

Allow loading options from query string #22

Closed tadeuszwojcik closed 5 years ago

tadeuszwojcik commented 5 years ago

Hi, Could this plugin use https://github.com/webpack/loader-utils for loading options and not assume that passed options are always an object? It's used by docz https://github.com/pedronauck/docz/blob/master/packages/docz-core/src/bundlers/webpack/loaders.ts#L29 but passing options there as an object, makes them available to react-docgen-typescript-loader as a query string, not sure how to overcome that without actually changing react-docgen-typescript-loader to read options even if passed as query string. Thanks!

strothj commented 5 years ago

@tadeuszwojcik

Hello,

I've released a release candidate with this change.

You can review the change log here: https://github.com/strothj/react-docgen-typescript-loader/blob/v3/README.md

The package is available as react-docgen-typescript-loader@next.

You might need to make use of your package manager's version override feature depending on your setup.

tadeuszwojcik commented 5 years ago

Thanks! I can confirm it's working fine now.

nickmccurdy commented 5 years ago

This should be closed by 3.0.0, right?

strothj commented 5 years ago

This should be closed by 3.0.0, right?

Yes, thank you.