This causes a type mismatch when forwarding config.resolve.mainFields to this plugin:
It might be preferable to directly pass through the types of mainFields (and extensions) directly from webpack. Alternatively, typing them as unknown would prevent type checking altogether, which seems acceptable in this pass-through scenario.
This plugin:
https://github.com/dividab/tsconfig-paths-webpack-plugin/blob/cb0f1dd86f9ca12818703ccbff13f7121ce210d6/src/options.ts#L12
Webpack:
https://github.com/webpack/webpack/blob/2738eebc7880835d88c727d364ad37f3ec557593/types.d.ts#L9718
This causes a type mismatch when forwarding
config.resolve.mainFields
to this plugin:It might be preferable to directly pass through the types of
mainFields
(andextensions
) directly fromwebpack
. Alternatively, typing them asunknown
would prevent type checking altogether, which seems acceptable in this pass-through scenario.