/terser-types-issue

A repo to reproduce terser types issue

Primary LanguageTypeScriptMIT LicenseMIT

terser-types-issue

A repo to reproduce terser types issue

run project

npm install
npm run typescript

Getting error:

error TS2322: Type '{ minify: false; minifyWhitespace: true; minifyIdentifiers: false; minifySyntax: true; }' is not assignable to type 'MinimizerOptions<MinifyOptions>'.
  Object literal may only specify known properties, and 'minify' does not exist in type 'MinimizerOptions<MinifyOptions>'.

10           minify: false,
             ~~~~~~


Found 1 error in my-webpack-config.ts:10

with old version

  • change "terser-webpack-plugin": "5.3.9", in package.json to 5.2.0
  • run npm install
  • run npm run typescript

it passes