revojs 0.0.8 → 0.0.10
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/index.js +4 -1
- package/package.json +7 -3
package/dist/index.js
CHANGED
|
@@ -438,7 +438,10 @@ const toCustomElement = (component) => {
|
|
|
438
438
|
};
|
|
439
439
|
const registerComponent = (component) => {
|
|
440
440
|
if (isServer()) components.set(component.$name, component);
|
|
441
|
-
if (isClient())
|
|
441
|
+
if (isClient()) {
|
|
442
|
+
const previous = customElements.get(component.$name);
|
|
443
|
+
if (previous === void 0) customElements.define(component.$name, toCustomElement(component));
|
|
444
|
+
}
|
|
442
445
|
return component;
|
|
443
446
|
};
|
|
444
447
|
const getGlobalStyles = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "revojs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "coverbase/revojs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,9 +29,13 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"defu": "^6.1.4"
|
|
31
31
|
},
|
|
32
|
+
"optionalDependencies": {
|
|
33
|
+
"@rolldown/binding-linux-x64-gnu": "*"
|
|
34
|
+
},
|
|
32
35
|
"devDependencies": {
|
|
33
|
-
"@revojs/tsconfig": "
|
|
34
|
-
"@revojs/rolldown": "
|
|
36
|
+
"@revojs/tsconfig": "*",
|
|
37
|
+
"@revojs/rolldown": "*",
|
|
38
|
+
"@types/bun": "^1.2.2",
|
|
35
39
|
"rolldown": "^1.0.0-beta.1"
|
|
36
40
|
}
|
|
37
41
|
}
|