Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "unimport", | ||
"version": "0.0.5", | ||
"description": "", | ||
"version": "0.0.6", | ||
"description": "Unified utils for auto importing APIs in modules", | ||
"repository": "unjs/unimport", | ||
@@ -12,7 +12,9 @@ "license": "MIT", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
"require": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts" | ||
}, | ||
"./unplugin": { | ||
"import": "./dist/unplugin.mjs", | ||
"require": "./dist/unplugin.cjs" | ||
"require": "./dist/unplugin.cjs", | ||
"types": "./dist/unplugin.d.ts" | ||
} | ||
@@ -51,3 +53,10 @@ }, | ||
}, | ||
"packageManager": "yarn@3.2.0" | ||
"packageManager": "yarn@3.2.0", | ||
"typesVersions": { | ||
"*": { | ||
"*": [ | ||
"./dist/*" | ||
] | ||
} | ||
} | ||
} |
@@ -8,8 +8,6 @@ # unimport | ||
> Package description | ||
> Unified utils for auto importing APIs in modules | ||
## Usage | ||
## Install | ||
Install package: | ||
```sh | ||
@@ -26,4 +24,36 @@ # npm | ||
Import: | ||
## Usage | ||
### Plugin Usage | ||
Powered by [unplugin](https://github.com/unjs/unplugin), `unimport` provides a plugin interface for bundlers. | ||
#### Vite / Rollup | ||
```ts | ||
// vite.config.js / rollup.config.js | ||
import Unimport from 'unimport/unplugin' | ||
export default { | ||
plugins: [ | ||
Unimport.vite({ /* plugin options */ }) | ||
] | ||
} | ||
``` | ||
#### Webpack | ||
```ts | ||
// webpack.config.js | ||
import Unimport from 'unimport/unplugin' | ||
module.exports = { | ||
plugins: [ | ||
Unimport.webpack({ /* plugin options */ }) | ||
] | ||
} | ||
``` | ||
### Programmatic Usage | ||
```js | ||
@@ -30,0 +60,0 @@ // ESM |
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
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
48466
99