Socket
Socket
Sign inDemoInstall

unplugin-auto-import

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unplugin-auto-import - npm Package Compare versions

Comparing version 0.4.8 to 0.4.9

dist/chunk-BMGX4QR6.mjs

6

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc