jsx-framework-test-pb 0.1.9 → 0.2.1
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.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { DevElement, ElementProps } from './types';
|
|
2
|
+
export type { Element } from './types';
|
|
3
|
+
export * from './types';
|
|
2
4
|
export declare const Fragment: symbol;
|
|
3
5
|
export declare function jsxDEV(type: string | Function | symbol, props: ElementProps, key?: string, isStaticChildren?: boolean, source?: {
|
|
4
6
|
fileName: string;
|
package/dist/jsx-dev-runtime.js
CHANGED
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Element, ElementProps } from './types';
|
|
2
|
+
export type { Element } from './types';
|
|
3
|
+
export * from './types';
|
|
2
4
|
export declare const Fragment: symbol;
|
|
3
5
|
export declare function jsx(type: string | Function | symbol, props: ElementProps, key?: string): Element;
|
|
4
6
|
export declare const jsxs: typeof jsx;
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -47,8 +47,8 @@ export function createElement(element) {
|
|
|
47
47
|
return null;
|
|
48
48
|
}
|
|
49
49
|
function createReactiveChild(fn) {
|
|
50
|
-
// Use
|
|
51
|
-
const anchor = document.
|
|
50
|
+
// Use an empty text node as a stable anchor point (invisible in DOM)
|
|
51
|
+
const anchor = document.createTextNode('');
|
|
52
52
|
let currentNode = null;
|
|
53
53
|
let isFirstRun = true;
|
|
54
54
|
const cleanup = effect(() => {
|