@jsenv/cli 0.3.14 → 0.3.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.
Files changed (127) hide show
  1. package/package.json +3 -3
  2. package/template-node-package/package.json +4 -4
  3. package/template-web/.jsenv/entry_index/craft/app/counter.js +11 -0
  4. package/template-web/.jsenv/entry_index/craft/index.html +27 -0
  5. package/template-web/.jsenv/entry_index/craft/jsenv_logo.svg +140 -0
  6. package/template-web/.jsenv/entry_index/craft/main.css +4 -0
  7. package/template-web/.jsenv/entry_index/craft/main.css7as_css_module=.js +7 -0
  8. package/template-web/.jsenv/entry_index/craft/main.js +31 -0
  9. package/template-web/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
  10. package/template-web/.jsenv_b/entry_index/craft/app/counter.js +11 -0
  11. package/template-web/.jsenv_b/entry_index/craft/index.html +27 -0
  12. package/template-web/.jsenv_b/entry_index/craft/jsenv_logo.svg +140 -0
  13. package/template-web/.jsenv_b/entry_index/craft/main.css +4 -0
  14. package/template-web/.jsenv_b/entry_index/craft/main.css7as_css_module=.js +7 -0
  15. package/template-web/.jsenv_b/entry_index/craft/main.js +31 -0
  16. package/template-web/.jsenv_b/entry_index/shape/index.html +24 -0
  17. package/template-web/.jsenv_b/entry_index/shape/jsenv_logo.svg +91 -0
  18. package/template-web/.jsenv_b/entry_index/shape/main.js +1 -0
  19. package/template-web/dist/index.html +1 -4
  20. package/template-web/dist/js/main.js +1 -0
  21. package/template-web/package.json +5 -5
  22. package/template-web/scripts/build.mjs +3 -10
  23. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +209 -0
  24. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css +4 -0
  25. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css7as_css_module=.js +7 -0
  26. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.js +31 -0
  27. package/template-web-components/.jsenv/entry_index/craft/app/counter.js +11 -0
  28. package/template-web-components/.jsenv/entry_index/craft/app/custom_elements_redefine.js +5 -0
  29. package/template-web-components/.jsenv/entry_index/craft/index.html +27 -0
  30. package/template-web-components/.jsenv/entry_index/craft/jsenv_logo.svg +140 -0
  31. package/template-web-components/.jsenv/entry_index/craft/main.js +11 -0
  32. package/template-web-components/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/packages/independent/frontend/custom-elements-redefine/src/@jsenv_custom-elements-redefine_main.js +209 -0
  33. package/template-web-components/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
  34. package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.css +4 -0
  35. package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.css7as_css_module=.js +7 -0
  36. package/template-web-components/.jsenv_b/entry_index/craft/app/app_custom_element.js +31 -0
  37. package/template-web-components/.jsenv_b/entry_index/craft/app/counter.js +11 -0
  38. package/template-web-components/.jsenv_b/entry_index/craft/app/custom_elements_redefine.js +5 -0
  39. package/template-web-components/.jsenv_b/entry_index/craft/index.html +27 -0
  40. package/template-web-components/.jsenv_b/entry_index/craft/jsenv_logo.svg +140 -0
  41. package/template-web-components/.jsenv_b/entry_index/craft/main.js +11 -0
  42. package/template-web-components/.jsenv_b/entry_index/shape/index.html +24 -0
  43. package/template-web-components/.jsenv_b/entry_index/shape/jsenv_logo.svg +91 -0
  44. package/template-web-components/.jsenv_b/entry_index/shape/main.js +1 -0
  45. package/template-web-components/dist/index.html +1 -4
  46. package/template-web-components/dist/js/main.js +1 -0
  47. package/template-web-components/package.json +5 -5
  48. package/template-web-components/scripts/build.mjs +3 -10
  49. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +2 -0
  50. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +2 -0
  51. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
  52. package/template-web-preact/.jsenv/entry_index/craft/app/app.css +43 -0
  53. package/template-web-preact/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +7 -0
  54. package/template-web-preact/.jsenv/entry_index/craft/app/app.jsx +44 -0
  55. package/template-web-preact/.jsenv/entry_index/craft/app/counter.jsx +17 -0
  56. package/template-web-preact/.jsenv/entry_index/craft/index.html +25 -0
  57. package/template-web-preact/.jsenv/entry_index/craft/main.jsx +4 -0
  58. package/template-web-preact/.jsenv/entry_index/craft/preact_logo.svg +6 -0
  59. package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/dist/preact.module.js +2 -0
  60. package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js +2 -0
  61. package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
  62. package/template-web-preact/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
  63. package/template-web-preact/.jsenv_b/entry_index/craft/app/app.css +43 -0
  64. package/template-web-preact/.jsenv_b/entry_index/craft/app/app.css7as_css_module=.js +7 -0
  65. package/template-web-preact/.jsenv_b/entry_index/craft/app/app.jsx +44 -0
  66. package/template-web-preact/.jsenv_b/entry_index/craft/app/counter.jsx +17 -0
  67. package/template-web-preact/.jsenv_b/entry_index/craft/index.html +25 -0
  68. package/template-web-preact/.jsenv_b/entry_index/craft/main.jsx +4 -0
  69. package/template-web-preact/.jsenv_b/entry_index/craft/preact_logo.svg +6 -0
  70. package/template-web-preact/.jsenv_b/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +1 -0
  71. package/template-web-preact/.jsenv_b/entry_index/shape/index.html +31 -0
  72. package/template-web-preact/.jsenv_b/entry_index/shape/main.jsx +1 -0
  73. package/template-web-preact/.jsenv_b/entry_index/shape/preact_logo.svg +6 -0
  74. package/template-web-preact/dist/index.html +8 -5
  75. package/template-web-preact/dist/js/main.js +1 -0
  76. package/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +1 -0
  77. package/template-web-preact/package.json +6 -6
  78. package/template-web-preact/scripts/build.mjs +4 -10
  79. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +7 -0
  80. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +7 -0
  81. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +38 -0
  82. package/template-web-react/.jsenv/entry_index/craft/app/app.css +43 -0
  83. package/template-web-react/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +7 -0
  84. package/template-web-react/.jsenv/entry_index/craft/app/app.jsx +45 -0
  85. package/template-web-react/.jsenv/entry_index/craft/app/counter.jsx +16 -0
  86. package/template-web-react/.jsenv/entry_index/craft/index.html +25 -0
  87. package/template-web-react/.jsenv/entry_index/craft/main.jsx +10 -0
  88. package/template-web-react/.jsenv/entry_index/craft/react_logo.svg +7 -0
  89. package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.js +7 -0
  90. package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js +7 -0
  91. package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +69 -0
  92. package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +617 -0
  93. package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.js +38 -0
  94. package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +15859 -0
  95. package/template-web-react/.jsenv_b/entry_index/craft/@fs/Users/dmail/Documents/dev/core/src/kitchen/client/inline_content.js +17 -0
  96. package/template-web-react/.jsenv_b/entry_index/craft/app/app.css +43 -0
  97. package/template-web-react/.jsenv_b/entry_index/craft/app/app.css7as_css_module=.js +7 -0
  98. package/template-web-react/.jsenv_b/entry_index/craft/app/app.jsx +45 -0
  99. package/template-web-react/.jsenv_b/entry_index/craft/app/counter.jsx +16 -0
  100. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +617 -0
  101. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +26 -0
  102. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +1 -0
  103. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +69 -0
  104. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +18 -0
  105. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +1 -0
  106. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +15859 -0
  107. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +42 -0
  108. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +1 -0
  109. package/template-web-react/.jsenv_b/entry_index/craft/cjs_to_esm/__compile_context__.json +3 -0
  110. package/template-web-react/.jsenv_b/entry_index/craft/index.html +25 -0
  111. package/template-web-react/.jsenv_b/entry_index/craft/main.jsx +10 -0
  112. package/template-web-react/.jsenv_b/entry_index/craft/react_logo.svg +7 -0
  113. package/template-web-react/.jsenv_b/entry_index/shape/@fs/Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/dist/jsenv_template_web_react_node_modules.js +1 -0
  114. package/template-web-react/.jsenv_b/entry_index/shape/index.html +31 -0
  115. package/template-web-react/.jsenv_b/entry_index/shape/main.jsx +1 -0
  116. package/template-web-react/.jsenv_b/entry_index/shape/react_logo.svg +7 -0
  117. package/template-web-react/dist/index.html +8 -5
  118. package/template-web-react/dist/js/main.js +1 -0
  119. package/template-web-react/dist/jsenv_template_web_react_node_modules.js +1 -0
  120. package/template-web-react/package.json +6 -6
  121. package/template-web-react/scripts/build.mjs +4 -10
  122. package/template-web/dist/js/main.nomodule.js +0 -1
  123. package/template-web-components/dist/js/main.nomodule.js +0 -1
  124. package/template-web-preact/dist/js/main.nomodule.js +0 -1
  125. package/template-web-preact/dist/vendors.js +0 -1
  126. package/template-web-react/dist/js/main.nomodule.js +0 -1
  127. package/template-web-react/dist/vendors.js +0 -1
@@ -4,10 +4,16 @@
4
4
  <meta charset="UTF-8">
5
5
  <link rel="icon" type="image/svg+xml" href="/other/preact_logo.svg?v=7aea73c3">
6
6
  <meta name="viewport" content="width=device-width,initial-scale=1">
7
+ <script type="importmap">
8
+ {
9
+ "imports": {
10
+ "/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=da45759d"
11
+ }
12
+ }
13
+ </script>
7
14
  <script>
8
15
  ;(function() {
9
16
  var __versionMappings__ = {
10
- "/vendors.js": "/vendors.js?v=4db8e934",
11
17
  "/other/preact_logo.svg": "/other/preact_logo.svg?v=7aea73c3"
12
18
  };
13
19
  window.__v__ = function (specifier) {
@@ -15,14 +21,11 @@
15
21
  };
16
22
  })();
17
23
  </script>
18
- <script>
19
- !function(e,n){if("function"==typeof define&&define.amd)define([],n);else if("undefined"!=typeof exports)n();else{n(),e.s={}}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(){"use strict";function e(e,n,t){return e&&e.then||(e=Promise.resolve(e)),n?e.then(n):e}function n(e){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];try{return Promise.resolve(e.apply(this,n))}catch(e){return Promise.reject(e)}}}function t(){}function r(e,n){return e&&e.then?e.then(t):Promise.resolve()}function o(e,n){var t=e();return t&&t.then?t.then(n):n(t)}function i(e,n){try{var t=e()}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,u,c=[],f=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n);else for(;!(f=(r=i.call(t)).done)&&(c.push(r.value),c.length!==n);f=!0);}catch(e){l=!0,o=e}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(e,n)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}!function(){var t=Object.create(null),c=Object.create(null),l=0,s={},a="object"===("undefined"==typeof document?"undefined":f(document)),d=self,m=!a&&"function"==typeof d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope,p=m&&"function"==typeof self.skipWaiting;d.System=s;var h=d.location.href.split("#")[0].split("?")[0],v=h.lastIndexOf("/");-1!==v&&(h=h.slice(0,v+1));var y=function(e,n){return new URL(e,n).href};if(a){var P=document.querySelector("base[href]");P&&(h=P.href),s.register=function(e,n){if(!document.currentScript)throw new Error("unexpected call to System.register (document.currentScript is undefined)");if(document.currentScript.__s__)return c[document.currentScript.src]=[e,n],null;var t=document.currentScript.src||"".concat(window.location.href,"__inline_script__").concat(++l);return c[t]=[e,n],_(t)},s.instantiate=function(e){var n=g(e);return new Promise((function(t,r){var o,i,u=function(e){o=e.filename,i=e.error};window.addEventListener("error",u),n.addEventListener("error",(function(){window.removeEventListener("error",u),r("An error occured while loading url with <script> for ".concat(e))})),n.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(n),o===e?r(i):t()})),document.head.appendChild(n)}))};var g=function(e){var n=document.createElement("script");return n.async=!0,e.indexOf("".concat(self.location.origin,"/"))&&(n.crossOrigin="anonymous"),n.__s__=!0,n.src=e,n}}if(m){var b=[];if(p){var w=["message","install","activate","fetch"],S={},x=new Promise((function(e){b.push(e)}));w.forEach((function(e){var n=[];self.addEventListener(e,(function(e){var t=S[e.type];t?t(e):(n.push(e),e.waitUntil(x))})),b.push((function(){if(n.length){var e=S[n[0].type];e&&n.forEach((function(n){e(n)})),n.length=0}}))}));var E=self.addEventListener;self.addEventListener=function(e,n,t){return w.indexOf(e)>-1?(S[e]=n,null):E.call(self,e,n,t)}}else{["message"].forEach((function(e){var n=[],t=function(e){n.push(e)};self.addEventListener(e,t),b.push((function(){self.removeEventListener(e,t),n.forEach((function(e){self.dispatchEvent(e)})),n.length=0}))}))}s.register=n((function(n,t){s.register=function(){throw new Error("unexpected call to System.register (called outside url instantiation)")};var r=self.location.href;return c[r]=[n,t],e(_(r),(function(e){return b.forEach((function(e){e()})),b.length=0,e}))})),s.instantiate=n((function(n){return e(self.fetch(n,{credentials:"same-origin"}),(function(t){if(!t.ok)throw Error("Failed to fetch module at ".concat(n));return e(t.text(),(function(e){e.indexOf("//# sourceURL=")<0&&(e+="\n//# sourceURL=".concat(n));var t=s.register;s.register=function(e,t){c[n]=[e,t]},(0,self.eval)(e),s.register=t}))}))}))}var _=function(e,n){var t=y(e,n),r=L(t,n);return r.completionPromise?r.completionPromise===r.namespace?Promise.resolve(r.namespace):r.completionPromise:O(r,n)},L=function(f,l){var a=t[f];if(a)return a;var d=T(),m={url:f,deps:[],dependencyLoads:[],instantiatePromise:null,linkPromise:null,executePromise:null,completionPromise:null,importerSetters:[],setters:[],execute:null,error:null,hoistedExports:!1,namespace:d};return t[f]=m,m.instantiatePromise=n((function(){return i((function(){var e=c[f];return o((function(){if(!e){var n=s.instantiate(f,l);return o((function(){if(n)return r(n)}),(function(){e=c[f]}))}}),(function(){if(!e)throw new Error("System.register() not called after executing ".concat(f));var n=u(e,2),t=n[0],r=(0,n[1])((function(e,n){m.hoistedExports=!0;var t=!1;if("string"==typeof e){var r=e,o=n;r in d&&d[r]===o||(d[r]=o,t=!0)}else Object.keys(e).forEach((function(n){var r=e[n];n in d&&d[n]===r||(d[n]=r,t=!0)})),e&&e.__esModule&&(d.__esModule=e.__esModule);return t&&m.importerSetters.forEach((function(e){e&&e(d)})),n}),{import:function(e){return _(e,f)},meta:M(f)}),o=r.setters,i=r.execute,c=void 0===i?function(){}:i;m.deps=t,m.setters=o,m.execute=c}))}),(function(e){m.error=e,m.execute=null}))}))(),m.linkPromise=n((function(){return e(m.instantiatePromise,(function(){return e(Promise.all(m.deps.map(n((function(e,n){var t=m.setters[n],i=y(e,f),u=L(i,f);return o((function(){if(u.instantiatePromise)return r(u.instantiatePromise)}),(function(){return t&&(u.importerSetters.push(t),!u.hoistedExports&&u.instantiatePromise||t(u.namespace)),u}))})))),(function(e){m.dependencyLoads=e}))}))}))(),m},O=n((function(n,t){return n.completionPromise=e(j(n,n,{}),(function(){return e(k(n,t?[t]:[]),(function(){return n.namespace}))})),n.completionPromise})),j=n((function(e,n,t){if(!t[e.url])return t[e.url]=!0,i((function(){return o((function(){if(e.linkPromise)return r(e.linkPromise)}),(function(){return r(Promise.all(e.dependencyLoads.map((function(e){return j(e,n,t)}))))}))}),(function(n){if(e.error)throw n;throw e.execute=null,n}))})),k=function(e,t){if(!(t.indexOf(e.url)>-1)){if(!e.execute){if(e.error)throw e.error;return e.executePromise?e.executePromise:void 0}var i=e.execute;e.execute=null;var u=[];return e.dependencyLoads.forEach((function(n){try{var r=t.slice();r.push(e.url);var o=k(n,r);o&&u.push(o)}catch(n){throw e.error=n,n}})),n((function(){return o((function(){if(u.length)return r(Promise.all(u))}),(function(){try{var n=i.call(A);if(n)return void(e.executePromise=n.then((function(){e.executePromise=null,e.completionPromise=e.namespace}),(function(n){throw e.executePromise=null,e.error=n,n})));e.instantiatePromise=null,e.linkPromise=null,e.completionPromise=e.namespace}catch(n){throw e.error=n,n}finally{e.execute=null}}))}))()}},A=Object.freeze(Object.create(null)),M=function(e){return{url:e,resolve:function(n){return y(n,e)}}},T="undefined"!=typeof Symbol&&Symbol.toStringTag?function(){var e=Object.create(null);return Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}:function(){return Object.create(null)}}()}));
20
- </script>
21
24
  <style>body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}</style>
22
25
  <title>Jsenv App</title>
23
26
  </head>
24
27
  <body>
25
28
  <div id="root"></div>
26
- <script src="/js/main.nomodule.js?v=a7f79f98"></script>
29
+ <script type="module" src="/js/main.js?v=a73569df"></script>
27
30
  </body>
28
31
  </html>
@@ -0,0 +1 @@
1
+ import{d as e,u as t,k as n,_ as o,E as r}from"/jsenv_template_web_preact_node_modules.js";("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const a=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),p=new CSSStyleSheet;p.replaceSync(a.text);const i=()=>{const[o,r]=e(0);return t(n,{children:[t("button",{id:"counter_button",type:"button",onClick:()=>r((e=>e+1)),children:"Click me"}),t("br",{}),"number of click: ",t("span",{id:"counter_output",children:o})]})},c=new URL(__v__("/other/preact_logo.svg"),import.meta.url);r(t((()=>(o((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,p],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==p))})),[]),t("div",{className:"app",children:t("header",{className:"app_header",children:[t("img",{src:c,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(i,{})}),t("p",{children:["Edit"," ",t("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),t("p",{children:t("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"));
@@ -0,0 +1 @@
1
+ var _,e,n,t,o,r,l,u,i,f,c,s={},a=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function d(_,e){for(var n in e)_[n]=e[n];return _}function v(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function m(_,t,o,r,l){var u={type:_,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++n:l,__i:-1,__u:0};return null==l&&null!=e.vnode&&e.vnode(u),u}function y(_){return _.children}function g(_,e){this.props=_,this.context=e}function k(_,e){if(null==e)return _.__?k(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?k(_):null}function b(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return b(_)}}function w(_){(!_.__d&&(_.__d=!0)&&t.push(_)&&!H.__r++||o!==e.debounceRendering)&&((o=e.debounceRendering)||r)(H)}function H(){for(var _,n,o,r,u,i,f,c=1;t.length;)t.length>c&&t.sort(l),_=t.shift(),c=t.length,_.__d&&(o=void 0,u=(r=(n=_).__v).__e,i=[],f=[],n.__P&&((o=d({},r)).__v=r.__v+1,e.vnode&&e.vnode(o),U(n.__P,o,r,n.__n,n.__P.namespaceURI,32&r.__u?[u]:null,i,null==u?k(r):u,!!(32&r.__u),f),o.__v=r.__v,o.__.__k[o.__i]=o,T(i,o,f),o.__e!=u&&b(o)));H.__r=0}function x(_,e,n,t,o,r,l,u,i,f,c){var p,d,v,g,b,w,H=t&&t.__k||a,x=e.length;for(i=function(_,e,n,t,o){var r,l,u,i,f,c=n.length,s=c,a=0;for(_.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?(i=r+a,(l=_.__k[r]="string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?m(null,l,null,null,null):h(l)?m(y,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?m(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=_,l.__b=_.__b+1,u=null,-1!==(f=l.__i=S(l,n,i,s))&&(s--,(u=n[f])&&(u.__u|=2)),null==u||null===u.__v?(-1==f&&(o>c?a--:o<c&&a++),"function"!=typeof l.type&&(l.__u|=4)):f!=i&&(f==i-1?a--:f==i+1?a++:(f>i?a--:a++,l.__u|=4))):_.__k[r]=null;if(s)for(r=0;r<c;r++)null!=(u=n[r])&&!(2&u.__u)&&(u.__e==t&&(t=k(u)),M(u,u));return t}(n,e,H,i,x),p=0;p<x;p++)null!=(v=n.__k[p])&&(d=-1===v.__i?s:H[v.__i]||s,v.__i=p,w=U(_,v,d,o,r,l,u,i,f,c),g=v.__e,v.ref&&d.ref!=v.ref&&(d.ref&&D(d.ref,null,v),c.push(v.ref,v.__c||g,v)),null==b&&null!=g&&(b=g),4&v.__u||d.__k===v.__k?i=P(v,i,_):"function"==typeof v.type&&void 0!==w?i=w:g&&(i=g.nextSibling),v.__u&=-7);return n.__e=b,i}function P(_,e,n){var t,o;if("function"==typeof _.type){for(t=_.__k,o=0;t&&o<t.length;o++)t[o]&&(t[o].__=_,e=P(t[o],e,n));return e}_.__e!=e&&(e&&_.type&&!n.contains(e)&&(e=k(_)),n.insertBefore(_.__e,e||null),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function S(_,e,n,t){var o,r,l=_.key,u=_.type,i=e[n];if(null===i&&null==_.key||i&&l==i.key&&u===i.type&&!(2&i.__u))return n;if(t>(null==i||2&i.__u?0:1))for(o=n-1,r=n+1;o>=0||r<e.length;){if(o>=0){if((i=e[o])&&!(2&i.__u)&&l==i.key&&u===i.type)return o;o--}if(r<e.length){if((i=e[r])&&!(2&i.__u)&&l==i.key&&u===i.type)return r;r++}}return-1}function N(_,e,n){"-"==e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function C(_,e,n,t,o){var r;_:if("style"==e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||N(_.style,e,"");if(n)for(e in n)t&&n[e]===t[e]||N(_.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(u,"$1")),e=e.toLowerCase()in _||"onFocusOut"==e||"onFocusIn"==e?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.t=t.t:(n.t=i,_.addEventListener(e,r?c:f,r)):_.removeEventListener(e,r?c:f,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?_.removeAttribute(e):_.setAttribute(e,"popover"==e&&1==n?"":n))}}function E(_){return function(n){if(this.l){var t=this.l[n.type+_];if(null==n.u)n.u=i++;else if(n.u<t.t)return;return t(e.event?e.event(n):n)}}}function U(_,n,t,o,r,l,u,i,f,c){var s,a,p,m,k,b,w,H,P,S,N,C,E,U,T,D,M,W=n.type;if(void 0!==n.constructor)return null;128&t.__u&&(f=!!(32&t.__u),l=[i=n.__e=t.__e]),(s=e.__b)&&s(n);_:if("function"==typeof W)try{if(H=n.props,P="prototype"in W&&W.prototype.render,S=(s=W.contextType)&&o[s.__c],N=s?S?S.props.value:s.__:o,t.__c?w=(a=n.__c=t.__c).__=a.__E:(P?n.__c=a=new W(H,N):(n.__c=a=new g(H,N),a.constructor=W,a.render=L),S&&S.sub(a),a.props=H,a.state||(a.state={}),a.context=N,a.__n=o,p=a.__d=!0,a.__h=[],a._sb=[]),P&&null==a.__s&&(a.__s=a.state),P&&null!=W.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=d({},a.__s)),d(a.__s,W.getDerivedStateFromProps(H,a.__s))),m=a.props,k=a.state,a.__v=n,p)P&&null==W.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),P&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(P&&null==W.getDerivedStateFromProps&&H!==m&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(H,N),!a.__e&&(null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(H,a.__s,N)||n.__v==t.__v)){for(n.__v!=t.__v&&(a.props=H,a.state=a.__s,a.__d=!1),n.__e=t.__e,n.__k=t.__k,n.__k.some((function(_){_&&(_.__=n)})),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[],a.__h.length&&u.push(a);break _}null!=a.componentWillUpdate&&a.componentWillUpdate(H,a.__s,N),P&&null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(m,k,b)}))}if(a.context=N,a.props=H,a.__P=_,a.__e=!1,E=e.__r,U=0,P){for(a.state=a.__s,a.__d=!1,E&&E(n),s=a.render(a.props,a.state,a.context),T=0;T<a._sb.length;T++)a.__h.push(a._sb[T]);a._sb=[]}else do{a.__d=!1,E&&E(n),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++U<25);a.state=a.__s,null!=a.getChildContext&&(o=d(d({},o),a.getChildContext())),P&&!p&&null!=a.getSnapshotBeforeUpdate&&(b=a.getSnapshotBeforeUpdate(m,k)),D=s,null!=s&&s.type===y&&null==s.key&&(D=F(s.props.children)),i=x(_,h(D)?D:[D],n,t,o,r,l,u,i,f,c),a.base=n.__e,n.__u&=-161,a.__h.length&&u.push(a),w&&(a.__E=a.__=null)}catch(_){if(n.__v=null,f||null!=l)if(_.then){for(n.__u|=f?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;l[l.indexOf(i)]=null,n.__e=i}else for(M=l.length;M--;)v(l[M]);else n.__e=t.__e,n.__k=t.__k;e.__e(_,n,t)}else null==l&&n.__v==t.__v?(n.__k=t.__k,n.__e=t.__e):i=n.__e=A(t.__e,n,t,o,r,l,u,f,c);return(s=e.diffed)&&s(n),128&n.__u?void 0:i}function T(_,n,t){for(var o=0;o<t.length;o++)D(t[o],t[++o],t[++o]);e.__c&&e.__c(n,_),_.some((function(n){try{_=n.__h,n.__h=[],_.some((function(_){_.call(n)}))}catch(_){e.__e(_,n.__v)}}))}function F(_){return"object"!=typeof _||null==_?_:h(_)?_.map(F):d({},_)}function A(n,t,o,r,l,u,i,f,c){var a,p,d,m,y,g,b,w=o.props,H=t.props,P=t.type;if("svg"==P?l="http://www.w3.org/2000/svg":"math"==P?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(a=0;a<u.length;a++)if((y=u[a])&&"setAttribute"in y==!!P&&(P?y.localName==P:3==y.nodeType)){n=y,u[a]=null;break}if(null==n){if(null==P)return document.createTextNode(H);n=document.createElementNS(l,P,H.is&&H),f&&(e.__m&&e.__m(t,u),f=!1),u=null}if(null===P)w===H||f&&n.data===H||(n.data=H);else{if(u=u&&_.call(n.childNodes),w=o.props||s,!f&&null!=u)for(w={},a=0;a<n.attributes.length;a++)w[(y=n.attributes[a]).name]=y.value;for(a in w)if(y=w[a],"children"==a);else if("dangerouslySetInnerHTML"==a)d=y;else if(!(a in H)){if("value"==a&&"defaultValue"in H||"checked"==a&&"defaultChecked"in H)continue;C(n,a,null,y,l)}for(a in H)y=H[a],"children"==a?m=y:"dangerouslySetInnerHTML"==a?p=y:"value"==a?g=y:"checked"==a?b=y:f&&"function"!=typeof y||w[a]===y||C(n,a,y,w[a],l);if(p)f||d&&(p.__html===d.__html||p.__html===n.innerHTML)||(n.innerHTML=p.__html),t.__k=[];else if(d&&(n.innerHTML=""),x("template"===t.type?n.content:n,h(m)?m:[m],t,o,r,"foreignObject"==P?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:o.__k&&k(o,0),f,c),null!=u)for(a=u.length;a--;)v(u[a]);f||(a="value","progress"==P&&null==g?n.removeAttribute("value"):void 0!==g&&(g!==n[a]||"progress"==P&&!g||"option"==P&&g!==w[a])&&C(n,a,g,w[a],l),a="checked",void 0!==b&&b!==n[a]&&C(n,a,b,w[a],l))}return n}function D(_,n,t){try{if("function"==typeof _){var o="function"==typeof _.__u;o&&_.__u(),o&&null==n||(_.__u=_(n))}else _.current=n}catch(_){e.__e(_,t)}}function M(_,n,t){var o,r;if(e.unmount&&e.unmount(_),(o=_.ref)&&(o.current&&o.current!==_.__e||D(o,null,n)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){e.__e(_,n)}o.base=o.__P=null}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&M(o[r],n,t||"function"!=typeof _.type);t||v(_.__e),_.__c=_.__=_.__e=void 0}function L(_,e,n){return this.constructor(_,n)}function W(n,t,o){var r,l,u;t==document&&(t=document.documentElement),e.__&&e.__(n,t),r=!1?null:t.__k,l=[],u=[],U(t,n=t.__k=function(e,n,t){var o,r,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=arguments.length>3?_.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===u[l]&&(u[l]=e.defaultProps[l]);return m(e,u,o,r,null)}(y,null,[n]),r||s,s,t.namespaceURI,r?null:t.firstChild?_.call(t.childNodes):null,l,r?r.__e:t.firstChild,false,u),T(l,n,u)}_=a.slice,e={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},n=0,g.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof _&&(_=_(d({},n),this.props)),_&&d(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),w(this))},g.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),w(this))},g.prototype.render=y,t=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(_,e){return _.__v.__b-e.__v.__b},H.__r=0,u=/(PointerCapture)$|Capture$/i,i=0,f=E(!1),c=E(!0);var I,R,$,q,B=0,O=[],j=e,z=j.__b,V=j.__r,G=j.diffed,J=j.__c,K=j.unmount,Q=j.__;function X(_,e){j.__h&&j.__h(R,_,B||e),B=0;var n=R.__H||(R.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({}),n.__[_]}function Y(_){return B=1,function(_,e){var n=X(I++,2);if(n.t=_,!n.__c&&(n.__=[r_(void 0,e),function(_){var e=n.__N?n.__N[0]:n.__[0],t=n.t(e,_);e!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=R,!R.__f)){var t=function(_,e,t){if(!n.__c.__H)return!0;var r=n.__c.__H.__.filter((function(_){return!!_.__c}));if(r.every((function(_){return!_.__N})))return!o||o.call(this,_,e,t);var l=n.__c.props!==_;return r.forEach((function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}})),o&&o.call(this,_,e,t)||l};R.__f=!0;var o=R.shouldComponentUpdate,r=R.componentWillUpdate;R.componentWillUpdate=function(_,e,n){if(this.__e){var l=o;o=void 0,t(_,e,n),o=l}r&&r.call(this,_,e,n)},R.shouldComponentUpdate=t}return n.__N||n.__}(r_,_)}function Z(_,e){var n=X(I++,4);!j.__s&&function(_,e){return!_||_.length!==e.length||e.some((function(e,n){return e!==_[n]}))}(n.__H,e)&&(n.__=_,n.u=e,R.__h.push(n))}function __(){for(var _;_=O.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(t_),_.__H.__h.forEach(o_),_.__H.__h=[]}catch(e){_.__H.__h=[],j.__e(e,_.__v)}}j.__b=function(_){R=null,z&&z(_)},j.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),Q&&Q(_,e)},j.__r=function(_){V&&V(_),I=0;var e=(R=_.__c).__H;e&&($===R?(e.__h=[],R.__h=[],e.__.forEach((function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0}))):(e.__h.forEach(t_),e.__h.forEach(o_),e.__h=[],I=0)),$=R},j.diffed=function(_){G&&G(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==O.push(e)&&q===j.requestAnimationFrame||((q=j.requestAnimationFrame)||n_)(__)),e.__H.__.forEach((function(_){_.u&&(_.__H=_.u),_.u=void 0}))),$=R=null},j.__c=function(_,e){e.some((function(_){try{_.__h.forEach(t_),_.__h=_.__h.filter((function(_){return!_.__||o_(_)}))}catch(n){e.some((function(_){_.__h&&(_.__h=[])})),e=[],j.__e(n,_.__v)}})),J&&J(_,e)},j.unmount=function(_){K&&K(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach((function(_){try{t_(_)}catch(_){e=_}})),n.__H=void 0,e&&j.__e(e,n.__v))};var e_="function"==typeof requestAnimationFrame;function n_(_){var e,n=function(){clearTimeout(t),e_&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,100);e_&&(e=requestAnimationFrame(n))}function t_(_){var e=R,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),R=e}function o_(_){var e=R;_.__c=_.__(),R=e}function r_(_,e){return"function"==typeof e?e(_):e}var l_=0;function u_(_,n,t,o,r,l){n||(n={});var u,i,f=n;if("ref"in f)for(i in f={},n)"ref"==i?u=n[i]:f[i]=n[i];var c={type:_,props:f,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--l_,__i:-1,__u:0,__source:r,__self:l};if("function"==typeof _&&(u=_.defaultProps))for(i in u)void 0===f[i]&&(f[i]=u[i]);return e.vnode&&e.vnode(c),c}export{W as E,Z as _,Y as d,y as k,u_ as u};
@@ -20,13 +20,13 @@
20
20
  "devDependencies": {
21
21
  "@babel/plugin-syntax-import-attributes": "7.26.0",
22
22
  "@babel/plugin-transform-react-jsx": "7.25.9",
23
- "@jsenv/assert": "4.4.4",
24
- "@jsenv/core": "40.0.10",
25
- "@jsenv/plugin-preact": "1.7.7",
26
- "@jsenv/plugin-bundling": "2.8.6",
23
+ "@jsenv/assert": "4.4.5",
24
+ "@jsenv/core": "40.1.0",
25
+ "@jsenv/plugin-preact": "1.7.8",
26
+ "@jsenv/plugin-bundling": "2.8.7",
27
27
  "@jsenv/plugin-minification": "1.6.2",
28
- "@jsenv/eslint-config-relax": "1.4.5",
29
- "@jsenv/test": "3.6.7",
28
+ "@jsenv/eslint-config-relax": "1.4.6",
29
+ "@jsenv/test": "3.6.8",
30
30
  "eslint": "9.22.0",
31
31
  "open": "10.1.0",
32
32
  "@playwright/browser-chromium": "1.51.0",
@@ -7,17 +7,11 @@ import { build } from "@jsenv/core";
7
7
  import { jsenvPluginPreact } from "@jsenv/plugin-preact";
8
8
 
9
9
  await build({
10
- sourceDirectoryUrl: new URL("../src/", import.meta.url),
11
- buildDirectoryUrl: new URL("../dist/", import.meta.url),
10
+ sourceDirectoryUrl: import.meta.resolve("../src/"),
11
+ buildDirectoryUrl: import.meta.resolve("../dist/"),
12
12
  entryPoints: {
13
- "./index.html": "index.html",
14
- },
15
- bundling: {
16
- js_module: {
17
- chunks: {
18
- vendors: { "file:///**/node_modules/": true },
19
- },
13
+ "./index.html": {
14
+ plugins: [jsenvPluginPreact()],
20
15
  },
21
16
  },
22
- plugins: [jsenvPluginPreact()],
23
17
  });
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (("production") === 'production') {
4
+ module.exports = require('./cjs/react.production.js');
5
+ } else {
6
+ module.exports = require('./cjs/react.development.js');
7
+ }
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (("production") === 'production') {
4
+ module.exports = require('./cjs/react-jsx-runtime.production.js');
5
+ } else {
6
+ module.exports = require('./cjs/react-jsx-runtime.development.js');
7
+ }
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ function checkDCE() {
4
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5
+ if (
6
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
7
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
8
+ ) {
9
+ return;
10
+ }
11
+ if (("production") !== 'production') {
12
+ // This branch is unreachable because this function is only called
13
+ // in production, but the condition is true only in development.
14
+ // Therefore if the branch is still here, dead code elimination wasn't
15
+ // properly applied.
16
+ // Don't change the message. React DevTools relies on it. Also make sure
17
+ // this message doesn't occur elsewhere in this function, or it will cause
18
+ // a false positive.
19
+ throw new Error('^_^');
20
+ }
21
+ try {
22
+ // Verify that the code above has been dead code eliminated (DCE'd).
23
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
24
+ } catch (err) {
25
+ // DevTools shouldn't crash React, no matter what.
26
+ // We should still report in case we break this code.
27
+ console.error(err);
28
+ }
29
+ }
30
+
31
+ if (("production") === 'production') {
32
+ // DCE check should happen before ReactDOM bundle executes so that
33
+ // DevTools can report bad minification during injection.
34
+ checkDCE();
35
+ module.exports = require('./cjs/react-dom-client.production.js');
36
+ } else {
37
+ module.exports = require('./cjs/react-dom-client.development.js');
38
+ }
@@ -0,0 +1,43 @@
1
+ .app {
2
+ text-align: center;
3
+ }
4
+
5
+ .app_logo {
6
+ pointer-events: none;
7
+ height: 40vmin;
8
+ }
9
+
10
+ @media (prefers-reduced-motion: no-preference) {
11
+ .app_logo {
12
+ animation: 20s linear infinite app_logo_spin;
13
+ }
14
+ }
15
+
16
+ .app_header {
17
+ color: #fff;
18
+ background-color: #282c34;
19
+ flex-direction: column;
20
+ justify-content: center;
21
+ align-items: center;
22
+ min-height: 100vh;
23
+ font-size: calc(10px + 2vmin);
24
+ display: flex;
25
+ }
26
+
27
+ .app_link {
28
+ color: #61dafb;
29
+ }
30
+
31
+ @keyframes app_logo_spin {
32
+ from {
33
+ transform: rotate(0);
34
+ }
35
+
36
+ to {
37
+ transform: rotate(360deg);
38
+ }
39
+ }
40
+
41
+ button {
42
+ font-size: calc(10px + 2vmin);
43
+ }
@@ -0,0 +1,7 @@
1
+ import "file:///Users/dmail/Documents/dev/core/dist/build/client/inline_content.js";
2
+
3
+ const inlineContent = new __InlineContent__(".app {\n text-align: center;\n}\n\n.app_logo {\n pointer-events: none;\n height: 40vmin;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n .app_logo {\n animation: 20s linear infinite app_logo_spin;\n }\n}\n\n.app_header {\n color: #fff;\n background-color: #282c34;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n min-height: 100vh;\n font-size: calc(10px + 2vmin);\n display: flex;\n}\n\n.app_link {\n color: #61dafb;\n}\n\n@keyframes app_logo_spin {\n from {\n transform: rotate(0);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n\nbutton {\n font-size: calc(10px + 2vmin);\n}\n", { type: "text/css" });
4
+ const stylesheet = new CSSStyleSheet();
5
+ stylesheet.replaceSync(inlineContent.text);
6
+
7
+ export default stylesheet;
@@ -0,0 +1,45 @@
1
+ import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/core/node_modules/react/index.js?cjs_as_js_module";
2
+ import appStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/app/app.css?as_css_module" ;
3
+ import { Counter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/app/counter.jsx";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js?cjs_as_js_module";
5
+ const reactLogoUrl = new URL("file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/react_logo.svg", import.meta.url);
6
+ export const App = () => {
7
+ useLayoutEffect(() => {
8
+ document.adoptedStyleSheets = [...document.adoptedStyleSheets, appStyleSheet];
9
+ return () => {
10
+ document.adoptedStyleSheets = document.adoptedStyleSheets.filter(s => s !== appStyleSheet);
11
+ };
12
+ }, []);
13
+ return /*#__PURE__*/_jsx("div", {
14
+ className: "app",
15
+ children: /*#__PURE__*/_jsxs("header", {
16
+ className: "app_header",
17
+ children: [/*#__PURE__*/_jsx("img", {
18
+ src: reactLogoUrl,
19
+ className: "app_logo",
20
+ alt: "logo"
21
+ }), /*#__PURE__*/_jsx("p", {
22
+ children: "Hello jsenv + React!"
23
+ }), /*#__PURE__*/_jsx("p", {
24
+ children: /*#__PURE__*/_jsx(Counter, {})
25
+ }), /*#__PURE__*/_jsxs("p", {
26
+ children: ["Edit", " ", /*#__PURE__*/_jsx("a", {
27
+ className: "app_link",
28
+ onClick: e => {
29
+ e.preventDefault();
30
+ window.fetch("/.internal/open_file/app/app.jsx");
31
+ },
32
+ children: "app.jsx"
33
+ }), " ", "and save to test HMR updates."]
34
+ }), /*#__PURE__*/_jsx("p", {
35
+ children: /*#__PURE__*/_jsx("a", {
36
+ className: "app_link",
37
+ href: "https://github.com/jsenv/core",
38
+ target: "_blank",
39
+ rel: "noopener noreferrer",
40
+ children: "Jsenv documentation"
41
+ })
42
+ })]
43
+ })
44
+ });
45
+ };
@@ -0,0 +1,16 @@
1
+ import { useState, Fragment } from "file:///Users/dmail/Documents/dev/core/node_modules/react/index.js?cjs_as_js_module";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js?cjs_as_js_module";
3
+ export const Counter = () => {
4
+ const [count, setCount] = useState(0);
5
+ return /*#__PURE__*/_jsxs(Fragment, {
6
+ children: [/*#__PURE__*/_jsx("button", {
7
+ id: "counter_button",
8
+ type: "button",
9
+ onClick: () => setCount(count => count + 1),
10
+ children: "Click me"
11
+ }), /*#__PURE__*/_jsx("br", {}), "number of click: ", /*#__PURE__*/_jsx("span", {
12
+ id: "counter_output",
13
+ children: count
14
+ })]
15
+ });
16
+ };
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" original-position-stored="">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <link rel="icon" type="image/svg+xml" href="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/react_logo.svg" original-href-position="5:43;5:65">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <style original-position="7:5;22:13" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">
8
+ body {
9
+ -webkit-font-smoothing: antialiased;
10
+ -moz-osx-font-smoothing: grayscale;
11
+ margin: 0;
12
+ font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
13
+ }
14
+
15
+ code {
16
+ font-family: source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace;
17
+ }
18
+ </style>
19
+ <title>Jsenv App</title>
20
+ </head>
21
+ <body>
22
+ <div id="root"></div>
23
+ <script type="module" src="file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/main.jsx" original-src-position="27:27;27:43"></script>
24
+ </body>
25
+ </html>
@@ -0,0 +1,10 @@
1
+ import React from "file:///Users/dmail/Documents/dev/core/node_modules/react/index.js?cjs_as_js_module";
2
+ import ReactDOM from "file:///Users/dmail/Documents/dev/core/node_modules/react-dom/client.js?cjs_as_js_module";
3
+ import { App } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/app/app.jsx";
4
+ import { jsx as _jsx } from "file:///Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.js?cjs_as_js_module";
5
+ ReactDOM.createRoot(document.querySelector("#root")).render(/*#__PURE__*/_jsx(React.StrictMode, {
6
+ children: /*#__PURE__*/_jsx(App, {})
7
+ }));
8
+ if (undefined) {
9
+ undefined.accept();
10
+ }
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3">
2
+ <g fill="#61DAFB">
3
+ <path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/>
4
+ <circle cx="420.9" cy="296.5" r="45.7"/>
5
+ <path d="M520.5 78.1z"/>
6
+ </g>
7
+ </svg>
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (("production") === 'production') {
4
+ module.exports = require('./cjs/react.production.js');
5
+ } else {
6
+ module.exports = require('./cjs/react.development.js');
7
+ }
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (("production") === 'production') {
4
+ module.exports = require('./cjs/react-jsx-runtime.production.js');
5
+ } else {
6
+ module.exports = require('./cjs/react-jsx-runtime.development.js');
7
+ }
@@ -0,0 +1,69 @@
1
+ function getDefaultExportFromCjs (x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3
+ }
4
+
5
+ var jsxRuntime = {exports: {}};
6
+
7
+ var reactJsxRuntime_production = {};
8
+
9
+ /**
10
+ * @license React
11
+ * react-jsx-runtime.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */
18
+
19
+ var hasRequiredReactJsxRuntime_production;
20
+
21
+ function requireReactJsxRuntime_production () {
22
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
23
+ hasRequiredReactJsxRuntime_production = 1;
24
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
25
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
26
+ function jsxProd(type, config, maybeKey) {
27
+ var key = null;
28
+ void 0 !== maybeKey && (key = "" + maybeKey);
29
+ void 0 !== config.key && (key = "" + config.key);
30
+ if ("key" in config) {
31
+ maybeKey = {};
32
+ for (var propName in config)
33
+ "key" !== propName && (maybeKey[propName] = config[propName]);
34
+ } else maybeKey = config;
35
+ config = maybeKey.ref;
36
+ return {
37
+ $$typeof: REACT_ELEMENT_TYPE,
38
+ type: type,
39
+ key: key,
40
+ ref: void 0 !== config ? config : null,
41
+ props: maybeKey
42
+ };
43
+ }
44
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
45
+ reactJsxRuntime_production.jsx = jsxProd;
46
+ reactJsxRuntime_production.jsxs = jsxProd;
47
+ return reactJsxRuntime_production;
48
+ }
49
+
50
+ var hasRequiredJsxRuntime;
51
+
52
+ function requireJsxRuntime () {
53
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
54
+ hasRequiredJsxRuntime = 1;
55
+
56
+ {
57
+ jsxRuntime.exports = requireReactJsxRuntime_production();
58
+ }
59
+ return jsxRuntime.exports;
60
+ }
61
+
62
+ var jsxRuntimeExports = requireJsxRuntime();
63
+ var __jsenv_default_import__ = /*@__PURE__*/getDefaultExportFromCjs(jsxRuntimeExports);
64
+
65
+ var Fragment = jsxRuntimeExports.Fragment;
66
+ var jsx = jsxRuntimeExports.jsx;
67
+ var jsxs = jsxRuntimeExports.jsxs;
68
+ export { Fragment, __jsenv_default_import__ as default, jsx, jsxs };
69
+