unplugin-auto-import
Advanced tools
Comparing version 0.3.3 to 0.4.0
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunk5I5CMYBWjs = require('./chunk-5I5CMYBW.js'); | ||
var _chunk4PU57LCRjs = require('./chunk-4PU57LCR.js'); | ||
require('./chunk-T5OU4655.js'); | ||
exports.default = _chunk5I5CMYBWjs.src_default; | ||
exports.default = _chunk4PU57LCRjs.src_default; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunk5I5CMYBWjs = require('./chunk-5I5CMYBW.js'); | ||
var _chunk4PU57LCRjs = require('./chunk-4PU57LCR.js'); | ||
require('./chunk-T5OU4655.js'); | ||
@@ -11,7 +11,7 @@ | ||
config.plugins = config.plugins || []; | ||
config.plugins.unshift(_chunk5I5CMYBWjs.src_default.webpack(options)); | ||
config.plugins.unshift(_chunk4PU57LCRjs.src_default.webpack(options)); | ||
}); | ||
this.nuxt.hook("vite:extend", async (vite) => { | ||
vite.config.plugins = vite.config.plugins || []; | ||
vite.config.plugins.push(_chunk5I5CMYBWjs.src_default.vite(options)); | ||
vite.config.plugins.push(_chunk4PU57LCRjs.src_default.vite(options)); | ||
}); | ||
@@ -18,0 +18,0 @@ } |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunk5I5CMYBWjs = require('./chunk-5I5CMYBW.js'); | ||
var _chunk4PU57LCRjs = require('./chunk-4PU57LCR.js'); | ||
require('./chunk-T5OU4655.js'); | ||
// src/rollup.ts | ||
var rollup_default = _chunk5I5CMYBWjs.src_default.rollup; | ||
var rollup_default = _chunk4PU57LCRjs.src_default.rollup; | ||
@@ -9,0 +9,0 @@ |
@@ -51,2 +51,6 @@ import { Arrayable } from '@antfu/utils'; | ||
/** | ||
* Identifiers to be ignored | ||
*/ | ||
ignore?: (string | RegExp)[]; | ||
/** | ||
* Pass a custom function to resolve the component importing path from the component name. | ||
@@ -93,2 +97,6 @@ * | ||
/** | ||
* Identifiers to be ignored | ||
*/ | ||
ignore?: (string | RegExp)[]; | ||
/** | ||
* Custom resolvers | ||
@@ -95,0 +103,0 @@ */ |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunk5I5CMYBWjs = require('./chunk-5I5CMYBW.js'); | ||
var _chunk4PU57LCRjs = require('./chunk-4PU57LCR.js'); | ||
require('./chunk-T5OU4655.js'); | ||
// src/vite.ts | ||
var vite_default = _chunk5I5CMYBWjs.src_default.vite; | ||
var vite_default = _chunk4PU57LCRjs.src_default.vite; | ||
@@ -9,0 +9,0 @@ |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunk5I5CMYBWjs = require('./chunk-5I5CMYBW.js'); | ||
var _chunk4PU57LCRjs = require('./chunk-4PU57LCR.js'); | ||
require('./chunk-T5OU4655.js'); | ||
// src/webpack.ts | ||
var webpack_default = _chunk5I5CMYBWjs.src_default.webpack; | ||
var webpack_default = _chunk4PU57LCRjs.src_default.webpack; | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "unplugin-auto-import", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "Register global imports on demand for Vite and Webpack", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,6 +5,7 @@ # unplugin-auto-import | ||
Auto import APIs on-demand for Vite, Webpack and Rollup. With TypeScript supports. Powered by [unplugin](https://github.com/unjs/unplugin). | ||
Auto import APIs on-demand for Vite, Webpack and Rollup. With TypeScript support. Powered by [unplugin](https://github.com/unjs/unplugin). | ||
```html | ||
<script setup> | ||
import { ref, computed } from 'vue' | ||
const count = ref(0) | ||
@@ -19,3 +20,2 @@ const doubled = computed(() => count.value * 2) | ||
<script setup> | ||
import { ref, computed } from 'vue' | ||
const count = ref(0) | ||
@@ -29,2 +29,3 @@ const doubled = computed(() => count.value * 2) | ||
```tsx | ||
import { useState } from 'react' | ||
export function Counter() { | ||
@@ -39,3 +40,2 @@ const [count, setCount] = useState(0) | ||
```tsx | ||
import { useState } from 'react' | ||
export function Counter() { | ||
@@ -42,0 +42,0 @@ const [count, setCount] = useState(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
38715
1121