vite-plugin-lazy-import
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -19,2 +19,6 @@ (function (global, factory) { | ||
}); | ||
var _exportNames = { | ||
kebabCase: true, | ||
lazyImport: true | ||
}; | ||
exports.kebabCase = void 0; | ||
@@ -25,2 +29,14 @@ exports.lazyImport = lazyImport; | ||
var _xeUtils = _interopRequireDefault(require("xe-utils")); | ||
var _resolvers = require("./resolvers"); | ||
Object.keys(_resolvers).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; | ||
if (key in exports && exports[key] === _resolvers[key]) return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _resolvers[key]; | ||
} | ||
}); | ||
}); | ||
function _interopRequireDefault(e) { | ||
@@ -27,0 +43,0 @@ return e && e.__esModule ? e : { |
{ | ||
"name": "vite-plugin-lazy-import", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Used for vite Lazy import js and style", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -91,3 +91,3 @@ # vite-plugin-lazy-import | ||
from: { | ||
jsPath: `vxe-pc-ui/es/${kebabCase(name)}/index.js` | ||
jsPath: `vxe-pc-ui/es/${kebabCase(name)}/index.js`, | ||
stylePath: `vxe-pc-ui/es/${kebabCase(name)}/style.css` | ||
@@ -94,0 +94,0 @@ } |
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
23525
8
480