unplugin-unused
Advanced tools
Comparing version 0.0.0 to 0.1.0
import { | ||
src_default | ||
} from "./chunk-MMMNJUGU.js"; | ||
} from "./chunk-W7R4EWYT.js"; | ||
@@ -5,0 +5,0 @@ // src/esbuild.ts |
@@ -5,5 +5,9 @@ import { UnpluginInstance } from 'unplugin'; | ||
interface Options { | ||
root?: string; | ||
include?: FilterPattern; | ||
exclude?: FilterPattern; | ||
enforce?: 'pre' | 'post' | undefined; | ||
/** | ||
* @default 'warning' | ||
*/ | ||
level?: 'warning' | 'error'; | ||
} | ||
@@ -10,0 +14,0 @@ |
import { | ||
src_default | ||
} from "./chunk-MMMNJUGU.js"; | ||
} from "./chunk-W7R4EWYT.js"; | ||
export { | ||
src_default as default | ||
}; |
import { | ||
src_default | ||
} from "./chunk-MMMNJUGU.js"; | ||
} from "./chunk-W7R4EWYT.js"; | ||
@@ -5,0 +5,0 @@ // src/rolldown.ts |
import { | ||
src_default | ||
} from "./chunk-MMMNJUGU.js"; | ||
} from "./chunk-W7R4EWYT.js"; | ||
@@ -5,0 +5,0 @@ // src/rollup.ts |
import { | ||
src_default | ||
} from "./chunk-MMMNJUGU.js"; | ||
} from "./chunk-W7R4EWYT.js"; | ||
@@ -5,0 +5,0 @@ // src/rspack.ts |
import { | ||
src_default | ||
} from "./chunk-MMMNJUGU.js"; | ||
} from "./chunk-W7R4EWYT.js"; | ||
@@ -5,0 +5,0 @@ // src/vite.ts |
import { | ||
src_default | ||
} from "./chunk-MMMNJUGU.js"; | ||
} from "./chunk-W7R4EWYT.js"; | ||
@@ -5,0 +5,0 @@ // src/webpack.ts |
{ | ||
"name": "unplugin-unused", | ||
"version": "0.0.0", | ||
"description": "Check unused files and dependencies.", | ||
"version": "0.1.0", | ||
"description": "Check unused dependencies.", | ||
"type": "module", | ||
@@ -81,3 +81,4 @@ "keywords": [ | ||
"@rollup/pluginutils": "^5.1.0", | ||
"magic-string": "^0.30.11", | ||
"js-tokens": "^9.0.0", | ||
"pkg-types": "^1.2.0", | ||
"unplugin": "^1.12.2" | ||
@@ -91,4 +92,4 @@ }, | ||
"bumpp": "^9.5.2", | ||
"escape-string-regexp": "^5.0.0", | ||
"eslint": "^9.9.1", | ||
"fast-glob": "^3.3.2", | ||
"prettier": "^3.3.3", | ||
@@ -95,0 +96,0 @@ "tsup": "^8.2.4", |
@@ -5,6 +5,4 @@ # unplugin-unused [![npm](https://img.shields.io/npm/v/unplugin-unused.svg)](https://npmjs.com/package/unplugin-unused) | ||
Check unused files and dependencies. | ||
Check unused dependencies. | ||
## Installation | ||
@@ -16,2 +14,12 @@ | ||
## Usage | ||
```ts | ||
Unused({ | ||
include: [/\.([cm]?[jt]sx?|vue)$/], | ||
exclude: [/node_modules/], | ||
level: 'warning', // or 'error' | ||
}) | ||
``` | ||
<details> | ||
@@ -18,0 +26,0 @@ <summary>Vite</summary><br> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16070
298
103
4
1
+ Addedjs-tokens@^9.0.0
+ Addedpkg-types@^1.2.0
+ Addedconfbox@0.1.8(transitive)
+ Addedjs-tokens@9.0.1(transitive)
+ Addedmlly@1.7.3(transitive)
+ Addedpathe@1.1.2(transitive)
+ Addedpkg-types@1.2.1(transitive)
+ Addedufo@1.5.4(transitive)
- Removedmagic-string@^0.30.11
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removedmagic-string@0.30.14(transitive)