vite-plugin-lazy-import
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -20,17 +20,13 @@ (function (global, factory) { | ||
exports.VxeResolver = VxeResolver; | ||
var _xeUtils = _interopRequireDefault(require("xe-utils")); | ||
function _interopRequireDefault(e) { | ||
return e && e.__esModule ? e : { | ||
"default": e | ||
}; | ||
} | ||
function VxeResolver(options) { | ||
var opts = Object.assign({ | ||
esm: true | ||
}, options); | ||
return { | ||
lib: options.lib, | ||
lib: opts.lib, | ||
importStyle: true, | ||
resolve: function resolve(_ref) { | ||
var name = _ref.name; | ||
var libPath = "".concat(options.lib, "/").concat(options.esm ? 'es' : 'lib'); | ||
var dirName = _xeUtils["default"].kebabCase(name); | ||
if (options.importStyle) { | ||
var dirName = _ref.dirName; | ||
var libPath = "".concat(opts.lib, "/").concat(opts.esm ? 'es' : 'lib'); | ||
if (opts.importStyle) { | ||
return { | ||
@@ -37,0 +33,0 @@ from: { |
{ | ||
"name": "vite-plugin-lazy-import", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Used for vite Lazy import js and style", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
26290
578