kt.js 0.6.15 → 0.6.16

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.
@@ -7,7 +7,6 @@ export { h as createElement, h } from '@ktjs/core';
7
7
  * @param _metadata metadata is ignored
8
8
  */
9
9
  function jsx(tag, props, ..._metadata) {
10
- console.log('JSX runtime called:', tag, props, _metadata);
11
10
  const propObj = typeof props === 'string' ? { class: props } : props;
12
11
  if (propObj === undefined || propObj === null) {
13
12
  return h(tag);
@@ -59,7 +58,10 @@ function Fragment(props) {
59
58
  /**
60
59
  * JSX Development runtime - same as jsx but with additional dev checks
61
60
  */
62
- const jsxDEV = jsx;
61
+ const jsxDEV = (...args) => {
62
+ console.log('JSX runtime called:', ...args);
63
+ return jsx(...args);
64
+ };
63
65
  /**
64
66
  * JSX runtime for React 17+ automatic runtime
65
67
  * This is called when using jsx: "react-jsx" or "react-jsxdev"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kt.js",
3
- "version": "0.6.15",
3
+ "version": "0.6.16",
4
4
  "author": {
5
5
  "name": "Kasukabe Tsumugi",
6
6
  "email": "futami16237@gmail.com"
@@ -42,7 +42,7 @@
42
42
  "license": "MIT",
43
43
  "dependencies": {
44
44
  "@ktjs/core": "0.6.12",
45
- "@ktjs/jsx": "0.6.15",
45
+ "@ktjs/jsx": "0.6.16",
46
46
  "@ktjs/shortcuts": "0.6.6"
47
47
  },
48
48
  "scripts": {