vite-plugin-lazy-import
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -19,3 +19,3 @@ (function (global, factory) { | ||
}); | ||
exports.lazyJsAndStyle = lazyJsAndStyle; | ||
exports.lazyImport = lazyImport; | ||
var _esModuleLexer = require("es-module-lexer"); | ||
@@ -77,3 +77,3 @@ var _pluginutils = require("@rollup/pluginutils"); | ||
} | ||
function lazyJsAndStyle(options) { | ||
function lazyImport(options) { | ||
var opts = Object.assign({ | ||
@@ -161,4 +161,3 @@ include: ['**/*.vue', '**/*.ts', '**/*.js', '**/*.tsx', '**/*.jsx'] | ||
var resOpts = Object.assign({ | ||
esm: true, | ||
importStyle: 'css' | ||
esm: true | ||
}, resolver); | ||
@@ -165,0 +164,0 @@ if (!resOpts.lib) { |
{ | ||
"name": "vite-plugin-lazy-import", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Used for vite Lazy import js and style", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -25,2 +25,2 @@ import { Plugin, FilterPattern } from 'vite' | ||
export function lazyJsAndStyle (options: LazyImportConfig): Plugin<any> | ||
export function lazyImport (options: LazyImportConfig): Plugin<any> |
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
20249
442