strothj / react-docgen-typescript-loader

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

do not mutate webpack context (options) #92

Closed adammockor closed 4 years ago

adammockor commented 4 years ago

It's not safe to mutate options according to this: https://github.com/webpack/loader-utils#getoptions

I run in strange error because of this when this loader is used on project with code-splitting and only index file has correct options passed react-docgen-typescript-loader.

strothj commented 4 years ago

Nice catch. That was definitely an oversight.

strothj commented 4 years ago

Released as 3.7.2