unplugin-auto-import
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -59,3 +59,3 @@ var __create = Object.create; | ||
var import_pluginutils = __toModule(require("@rollup/pluginutils")); | ||
var import_has_pkg = __toModule(require("has-pkg")); | ||
var import_local_pkg = __toModule(require("local-pkg")); | ||
@@ -303,3 +303,5 @@ // src/presets/vue.ts | ||
const imports = flattenImportsMap(options.imports, options.presetOverriding); | ||
const { dts = (0, import_has_pkg.default)("typescript") } = options; | ||
const { | ||
dts = (0, import_local_pkg.isPackageExists)("typescript") | ||
} = options; | ||
const resolved = __spreadProps(__spreadValues({ | ||
@@ -306,0 +308,0 @@ sourceMap: false, |
@@ -59,3 +59,3 @@ var __create = Object.create; | ||
var import_pluginutils = __toModule(require("@rollup/pluginutils")); | ||
var import_has_pkg = __toModule(require("has-pkg")); | ||
var import_local_pkg = __toModule(require("local-pkg")); | ||
@@ -303,3 +303,5 @@ // src/presets/vue.ts | ||
const imports = flattenImportsMap(options.imports, options.presetOverriding); | ||
const { dts = (0, import_has_pkg.default)("typescript") } = options; | ||
const { | ||
dts = (0, import_local_pkg.isPackageExists)("typescript") | ||
} = options; | ||
const resolved = __spreadProps(__spreadValues({ | ||
@@ -306,0 +308,0 @@ sourceMap: false, |
@@ -59,3 +59,3 @@ var __create = Object.create; | ||
var import_pluginutils = __toModule(require("@rollup/pluginutils")); | ||
var import_has_pkg = __toModule(require("has-pkg")); | ||
var import_local_pkg = __toModule(require("local-pkg")); | ||
@@ -303,3 +303,5 @@ // src/presets/vue.ts | ||
const imports = flattenImportsMap(options.imports, options.presetOverriding); | ||
const { dts = (0, import_has_pkg.default)("typescript") } = options; | ||
const { | ||
dts = (0, import_local_pkg.isPackageExists)("typescript") | ||
} = options; | ||
const resolved = __spreadProps(__spreadValues({ | ||
@@ -306,0 +308,0 @@ sourceMap: false, |
@@ -59,3 +59,3 @@ var __create = Object.create; | ||
var import_pluginutils = __toModule(require("@rollup/pluginutils")); | ||
var import_has_pkg = __toModule(require("has-pkg")); | ||
var import_local_pkg = __toModule(require("local-pkg")); | ||
@@ -303,3 +303,5 @@ // src/presets/vue.ts | ||
const imports = flattenImportsMap(options.imports, options.presetOverriding); | ||
const { dts = (0, import_has_pkg.default)("typescript") } = options; | ||
const { | ||
dts = (0, import_local_pkg.isPackageExists)("typescript") | ||
} = options; | ||
const resolved = __spreadProps(__spreadValues({ | ||
@@ -306,0 +308,0 @@ sourceMap: false, |
@@ -59,3 +59,3 @@ var __create = Object.create; | ||
var import_pluginutils = __toModule(require("@rollup/pluginutils")); | ||
var import_has_pkg = __toModule(require("has-pkg")); | ||
var import_local_pkg = __toModule(require("local-pkg")); | ||
@@ -303,3 +303,5 @@ // src/presets/vue.ts | ||
const imports = flattenImportsMap(options.imports, options.presetOverriding); | ||
const { dts = (0, import_has_pkg.default)("typescript") } = options; | ||
const { | ||
dts = (0, import_local_pkg.isPackageExists)("typescript") | ||
} = options; | ||
const resolved = __spreadProps(__spreadValues({ | ||
@@ -306,0 +308,0 @@ sourceMap: false, |
{ | ||
"name": "unplugin-auto-import", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "Register global imports on demand for Vite and Webpack", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
"@rollup/pluginutils": "^4.1.1", | ||
"has-pkg": "^0.0.1", | ||
"local-pkg": "^0.1.0", | ||
"magic-string": "^0.25.7", | ||
@@ -65,0 +65,0 @@ "resolve": "^1.20.0", |
@@ -7,17 +7,17 @@ # unplugin-auto-import | ||
```html | ||
<script setup> | ||
--- | ||
without | ||
```ts | ||
import { ref, computed } from 'vue' | ||
const count = ref(0) | ||
const doubled = computed(() => count.value * 2) | ||
</script> | ||
``` | ||
to | ||
with | ||
```html | ||
<script setup> | ||
```ts | ||
const count = ref(0) | ||
const doubled = computed(() => count.value * 2) | ||
</script> | ||
``` | ||
@@ -27,2 +27,4 @@ | ||
without | ||
```tsx | ||
@@ -36,3 +38,3 @@ import { useState } from 'react' | ||
to | ||
with | ||
@@ -46,4 +48,2 @@ ```tsx | ||
...and so on. | ||
## Install | ||
@@ -50,0 +50,0 @@ |
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
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
94033
2998
+ Addedlocal-pkg@^0.1.0
+ Addedbuiltins@4.1.0(transitive)
+ Addedimport-meta-resolve@1.1.1(transitive)
+ Addedlocal-pkg@0.1.0(transitive)
+ Addedmlly@0.2.10(transitive)
+ Addedsemver@7.6.3(transitive)
- Removedhas-pkg@^0.0.1
- Removedhas-pkg@0.0.1(transitive)