Skip to content

Commit

Permalink
chore: Remove @types/terser-webpack-plugin dependency (#158)
Browse files Browse the repository at this point in the history
A typical userscript doesn't need it because it doesn't import anything from the `terser-webpack-plugin` package; I therefore consider this a backward-compatible change.

I did this:

    $ npm why @types/terser-webpack-plugin
    @types/terser-webpack-plugin@2.2.0
    node_modules/@types/terser-webpack-plugin
      @types/terser-webpack-plugin@"^2.2.0" from the root project

    $ npm remove @types/terser-webpack-plugin

    $ npm install --save-dev --save-exact @types/terser-webpack-plugin@2.2.0
  • Loading branch information
SimonAlling authored Aug 1, 2024
1 parent 99fd277 commit a8b933e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"sideEffects": false,
"devDependencies": {
"@types/jest": "29.5.12",
"@types/terser-webpack-plugin": "2.2.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"cli-confirm": "^1.0.1",
Expand All @@ -90,7 +91,6 @@
},
"dependencies": {
"@types/sass": "^1.16.0",
"@types/terser-webpack-plugin": "^2.2.0",
"@types/webpack": "^4.39.9",
"css-loader": "^3.2.0",
"lines-unlines": "^1.0.0",
Expand Down

0 comments on commit a8b933e

Please sign in to comment.