vite-plugin-components
Advanced tools
Comparing version 0.13.0 to 0.13.2
@@ -476,3 +476,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __create = Object.create; | ||
(0, import_utils2.toArray)(sideEffects).forEach((i) => imports.push(stringifyImport(i))); | ||
return imports.join("\n"); | ||
return imports.join(";"); | ||
} | ||
@@ -791,4 +791,3 @@ function resolveOptions(options, viteConfig) { | ||
ctx.updateUsageMap(sfcPath, componentPaths); | ||
s.prepend(`${head.join("\n")} | ||
`); | ||
s.prepend(`${head.join(";")};`); | ||
const result = { code: s.toString() }; | ||
@@ -835,4 +834,3 @@ if (ctx.viteConfig.build.sourcemap) | ||
ctx.updateUsageMap(sfcPath, componentPaths); | ||
s.prepend(`${head.join("\n")} | ||
`); | ||
s.prepend(`${head.join(";")};`); | ||
const result = { code: s.toString() }; | ||
@@ -1278,3 +1276,3 @@ if (ctx.viteConfig.build.sourcemap) | ||
]; | ||
if (/^Table/.test(componentName)) | ||
if (/^Table|^Slider|^Tab/.test(componentName)) | ||
sideEffects.push("element-resize-detector"); | ||
@@ -1281,0 +1279,0 @@ if (/^Date/.test(componentName)) |
{ | ||
"name": "vite-plugin-components", | ||
"version": "0.13.0", | ||
"version": "0.13.2", | ||
"description": "Components auto importing for Vite", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/antfu/vite-plugin-components", |
@@ -141,2 +141,4 @@ <h2 align='center'><samp>vite-plugin-components</samp></h2> | ||
- [VueUse Components](https://github.com/antfu/vite-plugin-components/blob/master/src/resolvers/vueuse.ts) | ||
- [View UI](https://github.com/antfu/vite-plugin-components/blob/main/src/resolvers/view-ui.ts) | ||
- [Element UI](https://github.com/antfu/vite-plugin-components/blob/main/src/resolvers/element-ui.ts) | ||
@@ -143,0 +145,0 @@ ```ts |
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
97180
228
2971