Current behavior
When passing compiler options in the external format (like in tsconfig.json and like it stated in the plugin's documentation) it fails to parse "enumerated" fields like moduleResolution with the error like this: Unexpected moduleResolution: Node.
Expected behavior
It should parse such fields correctly.
Steps to reproduce the issue
Pass this config:
{ moduleResolution: 'Node' }
Environment
- fork-ts-checker-webpack-plugin:
^4.0.4
- typescript:
^3.7.2
- webpack:
^4.41.0
- os:
Ubuntu 18.04.4 LTS, Linux 5.3.0-40-generic
Workaround
Use convertCompilerOptions() from @moebius/ts-compiler-options to convert options from external format to internal first:
new ForkTsCheckerWebpackPlugin({
compilerOptions: convertCompilerOptions(
'external-to-internal',
{ moduleResolution: 'Node' }
),
})
Current behavior
When passing compiler options in the external format (like in
tsconfig.jsonand like it stated in the plugin's documentation) it fails to parse "enumerated" fields likemoduleResolutionwith the error like this:Unexpected moduleResolution: Node.Expected behavior
It should parse such fields correctly.
Steps to reproduce the issue
Pass this config:
Environment
^4.0.4^3.7.2^4.41.0Ubuntu 18.04.4 LTS, Linux 5.3.0-40-genericWorkaround
Use
convertCompilerOptions()from @moebius/ts-compiler-options to convert options from external format to internal first: