@rue-js/jsx-dev-runtime 0.0.20
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.
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @rue-js/jsx-dev-runtime v0.0.20
|
|
3
|
+
* (c) 2025-present Xiangmin Liu and Rue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var rueJs = require('rue-js');
|
|
11
|
+
|
|
12
|
+
function jsx(type, props, key) {
|
|
13
|
+
const p = key !== void 0 ? (() => {
|
|
14
|
+
const o = {};
|
|
15
|
+
if (props) {
|
|
16
|
+
for (const k in props) o[k] = props[k];
|
|
17
|
+
}
|
|
18
|
+
o.key = key;
|
|
19
|
+
return o;
|
|
20
|
+
})() : props ? props : null;
|
|
21
|
+
const c = props ? props.children : void 0;
|
|
22
|
+
return Array.isArray(c) ? rueJs.h(type, p, ...c) : c !== void 0 ? rueJs.h(type, p, c) : rueJs.h(type, p);
|
|
23
|
+
}
|
|
24
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
25
|
+
return jsx(type, props, key);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.Fragment = rueJs.Fragment;
|
|
29
|
+
exports.jsx = jsx;
|
|
30
|
+
exports.jsxDEV = jsxDEV;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @rue-js/jsx-dev-runtime v0.0.20
|
|
3
|
+
* (c) 2025-present Xiangmin Liu and Rue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var rueJs = require('rue-js');
|
|
11
|
+
|
|
12
|
+
function jsx(type, props, key) {
|
|
13
|
+
const p = key !== void 0 ? (() => {
|
|
14
|
+
const o = {};
|
|
15
|
+
if (props) {
|
|
16
|
+
for (const k in props) o[k] = props[k];
|
|
17
|
+
}
|
|
18
|
+
o.key = key;
|
|
19
|
+
return o;
|
|
20
|
+
})() : props ? props : null;
|
|
21
|
+
const c = props ? props.children : void 0;
|
|
22
|
+
return Array.isArray(c) ? rueJs.h(type, p, ...c) : c !== void 0 ? rueJs.h(type, p, c) : rueJs.h(type, p);
|
|
23
|
+
}
|
|
24
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
25
|
+
return jsx(type, props, key);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.Fragment = rueJs.Fragment;
|
|
29
|
+
exports.jsx = jsx;
|
|
30
|
+
exports.jsxDEV = jsxDEV;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Fragment } from 'rue-js';
|
|
2
|
+
|
|
3
|
+
export declare function jsx(type: any, props: any, key?: any): any;
|
|
4
|
+
|
|
5
|
+
/** 开发模式专用的 JSX API,兼容编译器扩展参数
|
|
6
|
+
* @returns VNode
|
|
7
|
+
*/
|
|
8
|
+
export declare function jsxDEV(type: any, props: any, key?: any, _isStaticChildren?: boolean, _source?: any, _self?: any): any;
|
|
9
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @rue-js/jsx-dev-runtime v0.0.20
|
|
3
|
+
* (c) 2025-present Xiangmin Liu and Rue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
import { h } from 'rue-js';
|
|
7
|
+
export { Fragment } from 'rue-js';
|
|
8
|
+
|
|
9
|
+
function jsx(type, props, key) {
|
|
10
|
+
const p = key !== void 0 ? (() => {
|
|
11
|
+
const o = {};
|
|
12
|
+
if (props) {
|
|
13
|
+
for (const k in props) o[k] = props[k];
|
|
14
|
+
}
|
|
15
|
+
o.key = key;
|
|
16
|
+
return o;
|
|
17
|
+
})() : props ? props : null;
|
|
18
|
+
const c = props ? props.children : void 0;
|
|
19
|
+
return Array.isArray(c) ? h(type, p, ...c) : c !== void 0 ? h(type, p, c) : h(type, p);
|
|
20
|
+
}
|
|
21
|
+
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
22
|
+
return jsx(type, props, key);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { jsx, jsxDEV };
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rue-js/jsx-dev-runtime",
|
|
3
|
+
"version": "0.0.20",
|
|
4
|
+
"description": "@rue-js/jsx-dev-runtime",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"rue"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/hunzhiwange/ruejs/tree/main/packages/runtime-core#readme",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/hunzhiwange/ruejs/issues"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Xiangmin Liu",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/hunzhiwange/ruejs.git",
|
|
17
|
+
"directory": "packages/jsx-dev-runtime"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"index.js",
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"main": "index.js",
|
|
25
|
+
"module": "dist/jsx-dev-runtime.esm-bundler.js",
|
|
26
|
+
"types": "dist/jsx-dev-runtime.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/jsx-dev-runtime.d.ts",
|
|
30
|
+
"development": "./src/index.ts",
|
|
31
|
+
"node": {
|
|
32
|
+
"production": "./dist/jsx-dev-runtime.cjs.prod.js",
|
|
33
|
+
"development": "./dist/jsx-dev-runtime.cjs.js",
|
|
34
|
+
"default": "./index.js"
|
|
35
|
+
},
|
|
36
|
+
"module": "./dist/jsx-dev-runtime.esm-bundler.js",
|
|
37
|
+
"import": "./dist/jsx-dev-runtime.esm-bundler.js",
|
|
38
|
+
"require": "./index.js"
|
|
39
|
+
},
|
|
40
|
+
"./*": "./*"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"rue-js": "0.0.20"
|
|
44
|
+
},
|
|
45
|
+
"buildOptions": {
|
|
46
|
+
"name": "RueJsxDevRuntimeCore",
|
|
47
|
+
"formats": [
|
|
48
|
+
"esm-bundler",
|
|
49
|
+
"cjs"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|