@jsenv/cli 0.3.4 → 0.3.6
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/package.json +2 -2
- package/template-node-package/package.json +3 -3
- package/template-web/.jsenv/craft/main.css7as_css_module=.js +2 -2
- package/template-web/.jsenv/craft/main.js +1 -1
- package/template-web/package.json +4 -4
- package/template-web-components/.jsenv/craft/app/app_custom_element.css7as_css_module=.js +2 -2
- package/template-web-components/package.json +4 -4
- package/template-web-preact/.jsenv/craft/app/app.css7as_css_module=.js +2 -2
- package/template-web-preact/.jsenv/craft/app/app.jsx +1 -1
- package/template-web-preact/.jsenv/shape/index.html +1 -1
- package/template-web-preact/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
- package/template-web-preact/dist/index.html +1 -1
- package/template-web-preact/dist/js/main.nomodule.js +1 -1
- package/template-web-preact/package.json +5 -5
- package/template-web-react/.jsenv/craft/app/app.css7as_css_module=.js +2 -2
- package/template-web-react/.jsenv/craft/app/app.jsx +1 -1
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/craft/cjs_to_esm/__compile_context__.json +1 -1
- package/template-web-react/.jsenv/shape/index.html +1 -1
- package/template-web-react/.jsenv/shape/main.nomodule7js_module_fallback=.jsx +1 -1
- package/template-web-react/dist/index.html +1 -1
- package/template-web-react/dist/js/main.nomodule.js +1 -1
- package/template-web-react/package.json +5 -5
- /package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/inline_content}/inline_content.js +0 -0
- /package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/new_stylesheet}/new_stylesheet.js +0 -0
- /package/template-web/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/inline_content}/inline_content.js +0 -0
- /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/new_stylesheet}/new_stylesheet.js +0 -0
- /package/template-web-components/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web-components/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/inline_content}/inline_content.js +0 -0
- /package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/new_stylesheet}/new_stylesheet.js +0 -0
- /package/template-web-preact/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web-preact/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web-preact/dist/{js/vendors.nomodule.js → vendors.js} +0 -0
- /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/inline_content}/inline_content.js +0 -0
- /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/dist/{js → client/new_stylesheet}/new_stylesheet.js +0 -0
- /package/template-web-react/.jsenv/craft/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web-react/.jsenv/shape/@fs/Users/dmail/Documents/dev/core/packages/internal/js-module-fallback/dist/{js → client}/s.js +0 -0
- /package/template-web-react/dist/{js/vendors.nomodule.js → vendors.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Command Line Interface for jsenv",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@jsenv/humanize": "1.3.1",
|
|
31
|
-
"@jsenv/urls": "2.6.
|
|
31
|
+
"@jsenv/urls": "2.6.3",
|
|
32
32
|
"prompts": "2.4.2"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@jsenv/assert": "4.4.4",
|
|
16
|
-
"@jsenv/core": "40.0.
|
|
17
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
18
|
-
"@jsenv/test": "3.6.
|
|
16
|
+
"@jsenv/core": "40.0.3",
|
|
17
|
+
"@jsenv/eslint-config-relax": "1.4.2",
|
|
18
|
+
"@jsenv/test": "3.6.3",
|
|
19
19
|
"eslint": "9.19.0",
|
|
20
20
|
"prettier": "3.4.2"
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
2
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
1
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js";
|
|
2
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js";
|
|
3
3
|
const inlineContent = new __InlineContent__(".logo {\n pointer-events: none;\n height: 40vmin;\n}\n", {
|
|
4
4
|
type: "text/css"
|
|
5
5
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
1
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js";
|
|
2
2
|
import mainStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/main.css?as_css_module";
|
|
3
3
|
import { initCounter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web/src/app/counter.js";
|
|
4
4
|
document.adoptedStyleSheets = [...document.adoptedStyleSheets, mainStyleSheet];
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
18
18
|
"@jsenv/assert": "4.4.4",
|
|
19
|
-
"@jsenv/core": "40.0.
|
|
20
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
21
|
-
"@jsenv/plugin-bundling": "2.8.
|
|
19
|
+
"@jsenv/core": "40.0.3",
|
|
20
|
+
"@jsenv/eslint-config-relax": "1.4.2",
|
|
21
|
+
"@jsenv/plugin-bundling": "2.8.2",
|
|
22
22
|
"@jsenv/plugin-minification": "1.6.0",
|
|
23
|
-
"@jsenv/test": "3.6.
|
|
23
|
+
"@jsenv/test": "3.6.3",
|
|
24
24
|
"eslint": "9.18.0",
|
|
25
25
|
"open": "10.1.0",
|
|
26
26
|
"@playwright/browser-chromium": "1.49.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
2
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
1
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js";
|
|
2
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js";
|
|
3
3
|
const inlineContent = new __InlineContent__(".logo {\n pointer-events: none;\n height: 40vmin;\n}\n", {
|
|
4
4
|
type: "text/css"
|
|
5
5
|
});
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
19
19
|
"@jsenv/custom-elements-redefine": "0.0.1",
|
|
20
20
|
"@jsenv/assert": "4.4.4",
|
|
21
|
-
"@jsenv/core": "40.0.
|
|
22
|
-
"@jsenv/plugin-bundling": "2.8.
|
|
21
|
+
"@jsenv/core": "40.0.3",
|
|
22
|
+
"@jsenv/plugin-bundling": "2.8.2",
|
|
23
23
|
"@jsenv/plugin-minification": "1.6.0",
|
|
24
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
25
|
-
"@jsenv/test": "3.6.
|
|
24
|
+
"@jsenv/eslint-config-relax": "1.4.2",
|
|
25
|
+
"@jsenv/test": "3.6.3",
|
|
26
26
|
"eslint": "9.18.0",
|
|
27
27
|
"open": "10.1.0",
|
|
28
28
|
"@playwright/browser-chromium": "1.49.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
2
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
1
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js";
|
|
2
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js";
|
|
3
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", {
|
|
4
4
|
type: "text/css"
|
|
5
5
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
1
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js";
|
|
2
2
|
import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/core/node_modules/preact/hooks/dist/hooks.module.js";
|
|
3
3
|
import appStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/app.css?as_css_module";
|
|
4
4
|
import { Counter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-preact/src/app/counter.jsx";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script jsenv-injected-by="jsenv:core" content-indented="">
|
|
8
8
|
;(function() {
|
|
9
9
|
var __versionMappings__ = {
|
|
10
|
-
"/
|
|
10
|
+
"/vendors.js": "/vendors.js?v=4db8e934",
|
|
11
11
|
"/other/preact_logo.svg": "/other/preact_logo.svg?v=7aea73c3"
|
|
12
12
|
};
|
|
13
13
|
window.__v__ = function (specifier) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([__v__("/
|
|
1
|
+
System.register([__v__("/vendors.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.d,o=e.u,r=e.k,c=e._,i=e.E}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:E});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,f),S.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function k(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),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"}),(s=new CSSStyleSheet).replaceSync(a.text),u=()=>{const[e,t]=n(0);return o(r,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:e})]})},l=new URL(__v__("/other/preact_logo.svg"),t.meta.url),i(o((()=>(c((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:o("header",{className:"app_header",children:[o("img",{src:l,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + preact!"}),o("p",{children:o(u,{})}),o("p",{children:["Edit"," ",o("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"))}}}));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script>
|
|
8
8
|
;(function() {
|
|
9
9
|
var __versionMappings__ = {
|
|
10
|
-
"/
|
|
10
|
+
"/vendors.js": "/vendors.js?v=4db8e934",
|
|
11
11
|
"/other/preact_logo.svg": "/other/preact_logo.svg?v=7aea73c3"
|
|
12
12
|
};
|
|
13
13
|
window.__v__ = function (specifier) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([__v__("/
|
|
1
|
+
System.register([__v__("/vendors.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l;return{setters:[function(e){n=e.d,o=e.u,r=e.k,c=e._,i=e.E}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:E});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=F(this);y.get(this).observe(e,f),S.get(this).length>0&&W(this),j(e,(function(e){R(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function E(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function b(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function k(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function j(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function F(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=F(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&j(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||j(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),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"}),(s=new CSSStyleSheet).replaceSync(a.text),u=()=>{const[e,t]=n(0);return o(r,{children:[o("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),o("br",{}),"number of click: ",o("span",{id:"counter_output",children:e})]})},l=new URL(__v__("/other/preact_logo.svg"),t.meta.url),i(o((()=>(c((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==s))})),[]),o("div",{className:"app",children:o("header",{className:"app_header",children:[o("img",{src:l,className:"app_logo",alt:"logo"}),o("p",{children:"Hello jsenv + preact!"}),o("p",{children:o(u,{})}),o("p",{children:["Edit"," ",o("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),o("p",{children:o("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})}))),{}),document.querySelector("#root"))}}}));
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
22
22
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
23
23
|
"@jsenv/assert": "4.4.4",
|
|
24
|
-
"@jsenv/core": "40.0.
|
|
25
|
-
"@jsenv/plugin-preact": "1.7.
|
|
26
|
-
"@jsenv/plugin-bundling": "2.8.
|
|
24
|
+
"@jsenv/core": "40.0.3",
|
|
25
|
+
"@jsenv/plugin-preact": "1.7.2",
|
|
26
|
+
"@jsenv/plugin-bundling": "2.8.2",
|
|
27
27
|
"@jsenv/plugin-minification": "1.6.0",
|
|
28
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
29
|
-
"@jsenv/test": "3.6.
|
|
28
|
+
"@jsenv/eslint-config-relax": "1.4.2",
|
|
29
|
+
"@jsenv/test": "3.6.3",
|
|
30
30
|
"eslint": "9.18.0",
|
|
31
31
|
"open": "10.1.0",
|
|
32
32
|
"@playwright/browser-chromium": "1.49.1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
2
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
1
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js";
|
|
2
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js";
|
|
3
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", {
|
|
4
4
|
type: "text/css"
|
|
5
5
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "file:///Users/dmail/Documents/dev/core/dist/
|
|
1
|
+
import "file:///Users/dmail/Documents/dev/core/dist/client/new_stylesheet/new_stylesheet.js";
|
|
2
2
|
import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/core/node_modules/react/index.js?cjs_as_js_module";
|
|
3
3
|
import appStyleSheet from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/app/app.css?as_css_module";
|
|
4
4
|
import { Counter } from "file:///Users/dmail/Documents/dev/core/packages/related/cli/template-web-react/src/app/counter.jsx";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script jsenv-injected-by="jsenv:core" content-indented="">
|
|
8
8
|
;(function() {
|
|
9
9
|
var __versionMappings__ = {
|
|
10
|
-
"/
|
|
10
|
+
"/vendors.js": "/vendors.js?v=889cb6c7",
|
|
11
11
|
"/other/react_logo.svg": "/other/react_logo.svg?v=11dbc9cc"
|
|
12
12
|
};
|
|
13
13
|
window.__v__ = function (specifier) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([__v__("/
|
|
1
|
+
System.register([__v__("/vendors.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l,d,p,f;return{setters:[function(e){n=e.u,o=e.j,r=e.F,c=e.a,i=e.b,a=e._,s=e.c}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=j(this);y.get(this).observe(e,f),S.get(this).length>0&&W(this),F(e,(function(e){R(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function E(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function k(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function j(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=j(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),u=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"}),(l=new CSSStyleSheet).replaceSync(u.text),d=()=>{const[e,t]=n(0);return o(r,{children:[c("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),c("br",{}),"number of click: ",c("span",{id:"counter_output",children:e})]})},p=new URL(__v__("/other/react_logo.svg"),t.meta.url),f=()=>(i((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,l],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==l))})),[]),c("div",{className:"app",children:o("header",{className:"app_header",children:[c("img",{src:p,className:"app_logo",alt:"logo"}),c("p",{children:"Hello jsenv + React!"}),c("p",{children:c(d,{})}),o("p",{children:["Edit"," ",c("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/.internal/open_file/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),c("p",{children:c("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),a.createRoot(document.querySelector("#root")).render(c(s.StrictMode,{children:c(f,{})}))}}}));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script>
|
|
8
8
|
;(function() {
|
|
9
9
|
var __versionMappings__ = {
|
|
10
|
-
"/
|
|
10
|
+
"/vendors.js": "/vendors.js?v=889cb6c7",
|
|
11
11
|
"/other/react_logo.svg": "/other/react_logo.svg?v=11dbc9cc"
|
|
12
12
|
};
|
|
13
13
|
window.__v__ = function (specifier) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register([__v__("/
|
|
1
|
+
System.register([__v__("/vendors.js")],(function(e,t){"use strict";var n,o,r,c,i,a,s,u,l,d,p,f;return{setters:[function(e){n=e.u,o=e.j,r=e.F,c=e.a,i=e.b,a=e._,s=e.c}],execute:function(){!function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,r=Object.defineProperty,c=Array.prototype.forEach,i=/@import.+?;?$/gm,a=CSSStyleSheet.prototype;a.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},a.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var s=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,p=M.prototype;p.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},p.replaceSync=function(e){if(x(this),"string"==typeof e){var t=this;s.get(t).textContent=function(e){var t=e.replace(i,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),u.get(t).forEach((function(e){e.isConnected()&&k(t,_(t,e))}))}},r(p,"cssRules",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.cssRules}}),r(p,"media",{configurable:!0,enumerable:!0,get:function(){return x(this),s.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){p[e]=function(){var t=this;x(t);var n=arguments;d.get(t).push({method:e,args:n}),u.get(t).forEach((function(o){if(o.isConnected()){var r=_(t,o).sheet;r[e].apply(r,n)}}));var o=s.get(t).sheet;return o[e].apply(o,n)}})),r(M,Symbol.hasInstance,{configurable:!0,value:b});var f={childList:!0,subtree:!0},h=new WeakMap,m=new WeakMap,S=new WeakMap,y=new WeakMap;if(O.prototype={isConnected:function(){var e=m.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=j(this);y.get(this).observe(e,f),S.get(this).length>0&&W(this),F(e,(function(e){R(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=m.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(b))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(E))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var o,r,c=S.get(t),i=(o=e).filter((function(e,t){return o.indexOf(e)===t}));(r=i,c.filter((function(e){return-1===r.indexOf(e)}))).forEach((function(e){var n;(n=_(e,t)).parentNode.removeChild(n),function(e,t){l.get(e).delete(t),u.set(e,u.get(e).filter((function(e){return e!==t})))}(e,t)})),S.set(t,i),t.isConnected()&&i.length>0&&W(t)}},window.CSSStyleSheet=M,N(Document),"ShadowRoot"in window){N(ShadowRoot);var g=Element.prototype,v=g.attachShadow;g.attachShadow=function(e){var t=v.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var w=R(document);w.isConnected()?w.connect():document.addEventListener("DOMContentLoaded",w.connect.bind(w))}function C(e){return e.shadowRoot||n.get(e)}function b(e){return"object"==typeof e&&(p.isPrototypeOf(e)||a.isPrototypeOf(e))}function E(e){return"object"==typeof e&&a.isPrototypeOf(e)}function _(e,t){return l.get(e).get(t)}function k(e,t){requestAnimationFrame((function(){t.textContent=s.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function x(e){if(!s.has(e))throw new TypeError("Illegal invocation")}function M(){var e=this,n=document.createElement("style");t.body.appendChild(n),s.set(e,n),u.set(e,[]),l.set(e,new WeakMap),d.set(e,[])}function R(e){var t=h.get(e);return t||(t=new O(e),h.set(e,t)),t}function N(e){r(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return R(this).sheets},set:function(e){R(this).update(e)}})}function F(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return C(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)t(C(o))}function j(e){var t=m.get(e);return t instanceof Document?t.body:t}function W(e){var t=document.createDocumentFragment(),n=S.get(e),o=y.get(e),r=j(e);o.disconnect(),n.forEach((function(n){t.appendChild(_(n,e)||function(e,t){var n=document.createElement("style");return l.get(e).set(t,n),u.get(e).push(t),n}(n,e))})),r.insertBefore(t,null),o.observe(r,f),n.forEach((function(t){k(t,_(t,e))}))}function O(t){var n=this;n.sheets=[],m.set(n,t),S.set(n,[]),y.set(n,new MutationObserver((function(t,o){document?t.forEach((function(t){e||c.call(t.addedNodes,(function(e){e instanceof Element&&F(e,(function(e){R(e).connect()}))})),c.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&S.get(e).some((function(t){return _(t,e)}))}(n,t)&&W(n),e||F(t,(function(e){R(e).disconnect()})))}))})):o.disconnect()})))}}(),u=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"}),(l=new CSSStyleSheet).replaceSync(u.text),d=()=>{const[e,t]=n(0);return o(r,{children:[c("button",{id:"counter_button",type:"button",onClick:()=>t((e=>e+1)),children:"Click me"}),c("br",{}),"number of click: ",c("span",{id:"counter_output",children:e})]})},p=new URL(__v__("/other/react_logo.svg"),t.meta.url),f=()=>(i((()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,l],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter((e=>e!==l))})),[]),c("div",{className:"app",children:o("header",{className:"app_header",children:[c("img",{src:p,className:"app_logo",alt:"logo"}),c("p",{children:"Hello jsenv + React!"}),c("p",{children:c(d,{})}),o("p",{children:["Edit"," ",c("a",{className:"app_link",onClick:e=>{e.preventDefault(),window.fetch("/.internal/open_file/app/app.jsx")},children:"app.jsx"})," ","and save to test HMR updates."]}),c("p",{children:c("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),a.createRoot(document.querySelector("#root")).render(c(s.StrictMode,{children:c(f,{})}))}}}));
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@babel/plugin-syntax-import-attributes": "7.26.0",
|
|
23
23
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
24
24
|
"@jsenv/assert": "4.4.4",
|
|
25
|
-
"@jsenv/core": "40.0.
|
|
26
|
-
"@jsenv/plugin-react": "1.7.
|
|
27
|
-
"@jsenv/plugin-bundling": "2.8.
|
|
25
|
+
"@jsenv/core": "40.0.3",
|
|
26
|
+
"@jsenv/plugin-react": "1.7.2",
|
|
27
|
+
"@jsenv/plugin-bundling": "2.8.2",
|
|
28
28
|
"@jsenv/plugin-minification": "1.6.0",
|
|
29
|
-
"@jsenv/eslint-config-relax": "1.4.
|
|
30
|
-
"@jsenv/test": "3.6.
|
|
29
|
+
"@jsenv/eslint-config-relax": "1.4.2",
|
|
30
|
+
"@jsenv/test": "3.6.3",
|
|
31
31
|
"eslint": "9.18.0",
|
|
32
32
|
"open": "10.1.0",
|
|
33
33
|
"@playwright/browser-chromium": "1.49.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|