unplugin-auto-import
Advanced tools
Comparing version 0.4.19 to 0.4.20
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkMKWHRCXHjs = require('./chunk-MKWHRCXH.js'); | ||
var _chunkOOCHIAGFjs = require('./chunk-OOCHIAGF.js'); | ||
require('./chunk-EGAZYO6M.js'); | ||
exports.default = _chunkMKWHRCXHjs.src_default; | ||
exports.default = _chunkOOCHIAGFjs.src_default; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkMKWHRCXHjs = require('./chunk-MKWHRCXH.js'); | ||
var _chunkOOCHIAGFjs = require('./chunk-OOCHIAGF.js'); | ||
require('./chunk-EGAZYO6M.js'); | ||
@@ -11,7 +11,7 @@ | ||
config.plugins = config.plugins || []; | ||
config.plugins.unshift(_chunkMKWHRCXHjs.src_default.webpack(options)); | ||
config.plugins.unshift(_chunkOOCHIAGFjs.src_default.webpack(options)); | ||
}); | ||
this.nuxt.hook("vite:extend", async (vite) => { | ||
vite.config.plugins = vite.config.plugins || []; | ||
vite.config.plugins.push(_chunkMKWHRCXHjs.src_default.vite(options)); | ||
vite.config.plugins.push(_chunkOOCHIAGFjs.src_default.vite(options)); | ||
}); | ||
@@ -18,0 +18,0 @@ } |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkMKWHRCXHjs = require('./chunk-MKWHRCXH.js'); | ||
var _chunkOOCHIAGFjs = require('./chunk-OOCHIAGF.js'); | ||
require('./chunk-EGAZYO6M.js'); | ||
// src/rollup.ts | ||
var rollup_default = _chunkMKWHRCXHjs.src_default.rollup; | ||
var rollup_default = _chunkOOCHIAGFjs.src_default.rollup; | ||
@@ -9,0 +9,0 @@ |
@@ -32,9 +32,13 @@ import { Arrayable } from '@antfu/utils'; | ||
module: string; | ||
name: string; | ||
name?: string; | ||
from?: string; | ||
}; | ||
declare type SideEffectsInfo = Arrayable<ImportInfo | string> | undefined; | ||
interface ResolveResult extends ImportInfo { | ||
sideEffects?: SideEffectsInfo; | ||
} | ||
/** | ||
* Given a identifier name, returns the import path or an importInfo object | ||
*/ | ||
declare type Resolver = (name: string) => string | ImportInfo | null | undefined | void; | ||
declare type Resolver = (name: string) => string | ResolveResult | null | undefined | void; | ||
/** | ||
@@ -47,3 +51,3 @@ * module, name, alias | ||
*/ | ||
declare type ImportsFlatMap = Record<string, ImportInfo>; | ||
declare type ImportsFlatMap = Record<string, ResolveResult>; | ||
interface Options { | ||
@@ -125,2 +129,2 @@ /** | ||
export { ImportInfo, ImportNameAlias, ImportsFlatMap, ImportsMap, Options, PresetName, ResolvedOptions, Resolver, TransformOptions }; | ||
export { ImportInfo, ImportNameAlias, ImportsFlatMap, ImportsMap, Options, PresetName, ResolveResult, ResolvedOptions, Resolver, SideEffectsInfo, TransformOptions }; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkMKWHRCXHjs = require('./chunk-MKWHRCXH.js'); | ||
var _chunkOOCHIAGFjs = require('./chunk-OOCHIAGF.js'); | ||
require('./chunk-EGAZYO6M.js'); | ||
// src/vite.ts | ||
var vite_default = _chunkMKWHRCXHjs.src_default.vite; | ||
var vite_default = _chunkOOCHIAGFjs.src_default.vite; | ||
@@ -9,0 +9,0 @@ |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkMKWHRCXHjs = require('./chunk-MKWHRCXH.js'); | ||
var _chunkOOCHIAGFjs = require('./chunk-OOCHIAGF.js'); | ||
require('./chunk-EGAZYO6M.js'); | ||
// src/webpack.ts | ||
var webpack_default = _chunkMKWHRCXHjs.src_default.webpack; | ||
var webpack_default = _chunkOOCHIAGFjs.src_default.webpack; | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "unplugin-auto-import", | ||
"version": "0.4.19", | ||
"version": "0.4.20", | ||
"description": "Register global imports on demand for Vite and Webpack", | ||
@@ -68,3 +68,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.10.0", | ||
"@antfu/eslint-config": "^0.11.1", | ||
"@antfu/ni": "^0.11.0", | ||
@@ -83,6 +83,6 @@ "@types/jest": "^27.0.3", | ||
"ts-jest": "^27.0.7", | ||
"tsup": "^5.9.0", | ||
"tsup": "^5.10.0", | ||
"typescript": "^4.5.2", | ||
"vite": "^2.6.14", | ||
"webpack": "^5.64.3" | ||
"webpack": "^5.64.4" | ||
}, | ||
@@ -89,0 +89,0 @@ "peerDependencies": { |
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
44931
1358