vue-pancake-icons 2.2.5 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-pancake-icons.es.js +23 -12
- package/dist/vue-pancake-icons.umd.js +1 -1
- package/package.json +1 -1
- package/src/install.js +1 -1
- package/vite.config.js +10 -2
@@ -1,24 +1,35 @@
|
|
1
|
-
const r = (
|
2
|
-
const e =
|
3
|
-
for (const [
|
4
|
-
e[
|
1
|
+
const r = (o, n) => {
|
2
|
+
const e = o.__vccOpts || o;
|
3
|
+
for (const [t, c] of n)
|
4
|
+
e[t] = c;
|
5
5
|
return e;
|
6
|
-
},
|
6
|
+
}, a = {
|
7
7
|
name: "hello-world"
|
8
8
|
};
|
9
|
-
function
|
9
|
+
function d(o, n, e, t, c, l) {
|
10
10
|
return " Hello world ";
|
11
11
|
}
|
12
|
-
const
|
12
|
+
const _ = /* @__PURE__ */ r(a, [["render", d]]), p = {
|
13
13
|
name: "icon-test"
|
14
14
|
};
|
15
|
-
function
|
15
|
+
function i(o, n, e, t, c, l) {
|
16
16
|
return " Icon test ";
|
17
17
|
}
|
18
|
-
const
|
19
|
-
IconTest:
|
20
|
-
HelloWorld:
|
18
|
+
const u = /* @__PURE__ */ r(p, [["render", i]]), f = {
|
19
|
+
IconTest: u,
|
20
|
+
HelloWorld: _
|
21
|
+
}, s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
22
|
+
__proto__: null,
|
23
|
+
default: f
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), m = {
|
25
|
+
install(o) {
|
26
|
+
for (let n in s) {
|
27
|
+
const e = s[n];
|
28
|
+
console.log(e, "dmmm"), o.component(e.name, e);
|
29
|
+
}
|
30
|
+
}
|
21
31
|
};
|
32
|
+
typeof window < "u" && window.Vue && window.Vue.use(m);
|
22
33
|
export {
|
23
|
-
|
34
|
+
m as default
|
24
35
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self,n.VuePancakeIcons=t())})(this,function(){"use strict";const n=(o,c)=>{const e=o.__vccOpts||o;for(const[s,r]of c)e[s]=r;return e},t={name:"hello-world"};function f(o,c,e,s,r,a){return" Hello world "}const u=n(t,[["render",f]]),l={name:"icon-test"};function p(o,c,e,s,r,a){return" Icon test "}const d=Object.freeze(Object.defineProperty({__proto__:null,default:{IconTest:n(l,[["render",p]]),HelloWorld:u}},Symbol.toStringTag,{value:"Module"})),i={install(o){for(let c in d){const e=d[c];console.log(e,"dmmm"),o.component(e.name,e)}}};return typeof window<"u"&&window.Vue&&window.Vue.use(i),i});
|
package/package.json
CHANGED
package/src/install.js
CHANGED
package/vite.config.js
CHANGED
@@ -5,7 +5,7 @@ import path from 'path'
|
|
5
5
|
export default defineConfig({
|
6
6
|
build: {
|
7
7
|
lib: {
|
8
|
-
entry: path.resolve(__dirname, 'src/
|
8
|
+
entry: path.resolve(__dirname, 'src/install.js'),
|
9
9
|
name: 'VuePancakeIcons',
|
10
10
|
fileName: (format) => `vue-pancake-icons.${format}.js`,
|
11
11
|
},
|
@@ -20,5 +20,13 @@ export default defineConfig({
|
|
20
20
|
},
|
21
21
|
},
|
22
22
|
},
|
23
|
-
plugins: [vue(
|
23
|
+
plugins: [vue({
|
24
|
+
template: {
|
25
|
+
compilerOptions: {
|
26
|
+
isCustomElement: (tag) => {
|
27
|
+
return true
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
})],
|
24
32
|
})
|