@jsenv/cli 0.3.19 → 0.3.21

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 (49) hide show
  1. package/package.json +1 -1
  2. package/template-node-package/package.json +1 -1
  3. package/template-web/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +17 -0
  4. package/template-web/.jsenv/entry_index/craft/main.css7as_css_module=.js +1 -1
  5. package/template-web/.jsenv/entry_index/shape/index.html +24 -0
  6. package/template-web/.jsenv/entry_index/shape/jsenv_logo.svg +91 -0
  7. package/template-web/.jsenv/entry_index/shape/main.js +1 -0
  8. package/template-web/dist/index.html +1 -1
  9. package/template-web/dist/js/main.js +1 -1
  10. package/template-web/package.json +2 -2
  11. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +17 -0
  12. package/template-web-components/.jsenv/entry_index/craft/app/app_custom_element.css7as_css_module=.js +1 -1
  13. package/template-web-components/.jsenv/entry_index/shape/index.html +24 -0
  14. package/template-web-components/.jsenv/entry_index/shape/jsenv_logo.svg +91 -0
  15. package/template-web-components/.jsenv/entry_index/shape/main.js +1 -0
  16. package/template-web-components/dist/index.html +1 -1
  17. package/template-web-components/dist/js/main.js +1 -1
  18. package/template-web-components/package.json +2 -2
  19. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +17 -0
  20. package/template-web-preact/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +1 -1
  21. package/template-web-preact/.jsenv/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
  22. package/template-web-preact/.jsenv/entry_index/shape/index.html +31 -0
  23. package/template-web-preact/.jsenv/entry_index/shape/main.jsx +1 -0
  24. package/template-web-preact/.jsenv/entry_index/shape/preact_logo.svg +6 -0
  25. package/template-web-preact/dist/index.html +1 -1
  26. package/template-web-preact/dist/js/main.js +1 -1
  27. package/template-web-preact/package.json +2 -2
  28. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js +17 -0
  29. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react/jsx-runtime7cjs_as_js_module=.jsx +69 -0
  30. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react/react7cjs_as_js_module=.jsx +617 -0
  31. package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +15859 -0
  32. package/template-web-react/.jsenv/entry_index/craft/app/app.css7as_css_module=.js +1 -1
  33. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js +617 -0
  34. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.js__compile_info__.json +26 -0
  35. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/index.production.map +1 -0
  36. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js +69 -0
  37. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.js__compile_info__.json +18 -0
  38. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react/jsx-runtime.production.map +1 -0
  39. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js +15859 -0
  40. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.js__compile_info__.json +42 -0
  41. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/core/node_modules/react-dom/client.production.map +1 -0
  42. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/__compile_context__.json +3 -0
  43. package/template-web-react/.jsenv/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
  44. package/template-web-react/.jsenv/entry_index/shape/index.html +31 -0
  45. package/template-web-react/.jsenv/entry_index/shape/main.jsx +1 -0
  46. package/template-web-react/.jsenv/entry_index/shape/react_logo.svg +7 -0
  47. package/template-web-react/dist/index.html +1 -1
  48. package/template-web-react/dist/js/main.js +1 -1
  49. package/template-web-react/package.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/cli",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "description": "Command Line Interface for jsenv",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@jsenv/assert": "4.4.5",
16
- "@jsenv/core": "40.1.3",
16
+ "@jsenv/core": "40.1.5",
17
17
  "@jsenv/eslint-config-relax": "1.4.6",
18
18
  "@jsenv/test": "3.6.9",
19
19
  "eslint": "9.22.0",
@@ -0,0 +1,17 @@
1
+ /* eslint-env browser,node */
2
+
3
+ /*
4
+ * This file does not use export const InlineContent = function() {} on purpose:
5
+ * - An export would be renamed by rollup,
6
+ * making it harder to statically detect new InlineContent() calls
7
+ * - An export would be renamed by terser
8
+ * here again it becomes hard to detect new InlineContent() calls
9
+ * Instead it sets "__InlineContent__" on the global object and terser is configured by jsenv
10
+ * to preserve the __InlineContent__ global variable name
11
+ */
12
+
13
+ const globalObject = typeof self === "object" ? self : process;
14
+ globalObject.__InlineContent__ = function (content, { type = "text/plain" }) {
15
+ this.text = content;
16
+ this.type = type;
17
+ };
@@ -1,4 +1,4 @@
1
- import "file:///Users/dmail/Documents/dev/core/dist/build/client/inline_content.js";
1
+ import "file:///Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js";
2
2
 
3
3
  const inlineContent = new __InlineContent__(".logo {\n pointer-events: none;\n height: 40vmin;\n}\n", { type: "text/css" });
4
4
  const stylesheet = new CSSStyleSheet();
@@ -0,0 +1,24 @@
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="/other/jsenv_logo.svg?v=0ad5d0f8" original-href-position="5:43;5:66">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1">
7
+ <script jsenv-injected-by="jsenv:core" content-indented="">
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/other/jsenv_logo.svg": "/other/jsenv_logo.svg?v=0ad5d0f8"
11
+ };
12
+ window.__v__ = function (specifier) {
13
+ return __versionMappings__[specifier] || specifier
14
+ };
15
+ })();
16
+ </script>
17
+ <style original-position="7:5;20:13" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{background:#add8e6}#root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px;font-family:Avenir,Helvetica,Arial,sans-serif}</style>
18
+ <title>Jsenv web page</title>
19
+ </head>
20
+ <body>
21
+ <div id="root"></div>
22
+ <script type="module" src="/js/main.js?v=64d7dabc" original-src-position="25:27;25:42"></script>
23
+ </body>
24
+ </html>
@@ -0,0 +1,91 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" id="jsenv_logo" viewBox="0 0 430 430" enable-background="new 0 0 430 430">
2
+ <g id="letters">
3
+ <path id="j" fill="#F7931E" d="M78.879,272.229c3.381-0.441,7.056-1.176,9.408-3.822c2.793-2.939,3.234-8.086,3.234-19.111v-63.064
4
+ h19.404v66.74c0,16.023-3.381,23.52-9.555,28.371c-5.292,4.264-14.112,6.174-21.021,6.174L78.879,272.229z M111.072,167.121
5
+ c0,6.174-4.41,10.438-10.143,10.438c-5.292,0-9.702-4.263-9.555-10.438c-0.147-6.468,4.41-10.437,9.849-10.437
6
+ S111.072,160.653,111.072,167.121z"/>
7
+ <path id="s" fill="#F7931E" d="M123.714,240.77c2.793,1.764,8.085,3.822,12.936,3.822c4.998,0,7.791-2.205,7.791-6.469
8
+ c0-3.675-2.058-6.027-8.379-9.702c-11.76-6.615-14.553-14.112-14.553-20.727c0-12.937,9.261-22.639,23.667-22.639
9
+ c6.027,0,10.731,1.47,14.553,3.234l-3.381,14.112c-2.793-1.617-6.174-2.94-9.996-2.94c-4.851,0-7.203,2.94-7.203,6.174
10
+ c0,3.234,1.617,4.998,8.379,8.967c10.584,6.027,14.553,13.524,14.553,21.756c0,14.699-10.584,22.639-25.432,22.639
11
+ c-6.027,0-13.083-1.617-16.464-4.117L123.714,240.77z"/>
12
+ <path id="e" fill="#F7931E" d="M204.414,223.57c0.148,21.756,8.674,26.461,16.906,26.461c4.852,0,8.967-1.176,11.76-2.793l1.764,8.379
13
+ c-3.969,2.205-9.996,3.381-15.582,3.381c-17.052,0-25.872-13.965-25.872-35.722c0-23.08,9.702-37.486,23.961-37.486
14
+ c14.553,0,20.285,15.289,20.285,31.459c0,2.646,0,4.557-0.146,6.321H204.414z M226.76,215.191
15
+ c0.293-14.259-5.145-20.581-10.584-20.581c-7.352,0-11.174,10.878-11.613,20.581H226.76z"/>
16
+ <path id="n" fill="#F7931E" d="M249.836,205.342c0-8.379-0.441-12.643-0.588-18.375h9.85l0.588,8.526h0.293
17
+ c3.088-5.733,8.82-9.702,16.318-9.702c9.85,0,17.199,7.35,17.199,24.55v47.775h-11.318V212.25c0-8.379-1.617-16.905-9.85-16.905
18
+ c-4.705,0-9.262,3.969-10.732,11.613c-0.293,1.764-0.439,3.969-0.439,6.321v44.835h-11.32V205.342z"/>
19
+ <path id="v" fill="#F7931E" d="M313.783,186.966l8.967,39.985c1.029,4.851,2.205,11.172,3.088,17.346h0.441
20
+ c0.734-5.879,1.91-11.907,2.939-17.346l8.82-39.985h11.172l-18.523,71.149h-10.143l-18.521-71.149H313.783z"/>
21
+ </g>
22
+ <g id="arcs">
23
+ <path id="arc1" fill="#F7931E" d="M32.118,204.979c0,0,0.105,1.801,0.302,5.179c0.124,3.4,0.638,8.29,1.434,14.48
24
+ c0.249,1.546,0.511,3.174,0.786,4.882c0.137,0.853,0.278,1.725,0.421,2.617c0.154,0.89,0.376,1.789,0.558,2.712
25
+ c0.384,1.843,0.783,3.761,1.197,5.75c0.444,1.981,1.027,4.008,1.56,6.112c2.274,8.378,5.328,17.708,9.758,27.396
26
+ c4.406,9.688,10.04,19.776,17.062,29.673c7.003,9.901,15.393,19.609,25.102,28.499c9.702,8.888,20.652,17.025,32.581,23.85
27
+ c11.948,6.789,24.834,12.287,38.159,16.203c13.357,3.824,27.155,5.896,40.737,6.35l2.541,0.113l2.542-0.017
28
+ c1.689-0.012,3.376-0.142,5.059-0.152l1.259-0.126h0.157c-0.466,0-0.034,0.113-0.096,0.111l0.329,0.039l0.657-0.012l2.625-0.138
29
+ c1.748-0.094,3.492-0.181,5.229-0.274l2.599-0.14l2.399-0.292c1.596-0.203,3.188-0.354,4.772-0.526
30
+ c3.147-0.236,6.372-0.888,9.541-1.397c12.69-2.107,24.746-5.299,35.916-9.232c2.755-1.075,5.479-2.131,8.182-3.142
31
+ c2.655-1.114,5.222-2.329,7.782-3.459c2.6-1.056,4.984-2.43,7.407-3.636c1.206-0.616,2.401-1.228,3.584-1.832
32
+ c1.189-0.598,2.295-1.31,3.432-1.949c2.248-1.316,4.477-2.577,6.623-3.866c2.099-1.369,4.148-2.706,6.146-4.011
33
+ c2.042-1.258,3.901-2.66,5.735-3.997c1.822-1.352,3.646-2.613,5.355-3.907c1.669-1.351,3.284-2.656,4.843-3.918
34
+ c1.569-1.258,3.121-2.439,4.471-3.723c1.402-1.238,2.746-2.427,4.031-3.563c1.288-1.139,2.548-2.204,3.621-3.327
35
+ c2.193-2.203,4.225-4.131,5.979-5.831c1.697-1.744,3.063-3.304,4.243-4.516c2.34-2.456,3.588-3.767,3.588-3.767l0.026-0.028
36
+ c0.326-0.342,0.867-0.355,1.209-0.029c0.285,0.271,0.341,0.695,0.161,1.026c0,0-0.868,1.598-2.574,4.574
37
+ c-0.854,1.488-1.885,3.349-3.214,5.459c-1.387,2.064-2.967,4.465-4.816,7.108c-0.887,1.355-1.955,2.669-3.051,4.075
38
+ c-1.103,1.406-2.257,2.878-3.46,4.412c-1.185,1.56-2.571,3.036-3.979,4.607c-1.424,1.563-2.899,3.181-4.424,4.853
39
+ c-1.572,1.628-3.282,3.218-5.018,4.893c-1.745,1.662-3.502,3.432-5.49,5.023c-1.957,1.641-3.965,3.323-6.021,5.047
40
+ c-2.111,1.653-4.363,3.226-6.623,4.899c-9.169,6.472-19.718,12.805-31.671,17.869c-11.917,5.107-25.137,9.123-39.146,11.367
41
+ c-3.516,0.507-7.004,1.114-10.719,1.336c-1.834,0.148-3.674,0.319-5.521,0.438l-2.773,0.192l-2.611,0.027
42
+ c-1.74,0.015-3.486,0.03-5.237,0.045l-2.63,0.012l-1.585-0.006l-1.378-0.074c-1.836-0.101-3.676-0.201-5.521-0.302l-2.766-0.157
43
+ l-2.764-0.29c-14.755-1.437-29.532-4.559-43.748-9.26c-14.191-4.788-27.769-11.24-40.221-18.991
44
+ c-12.467-7.743-23.632-16.999-33.41-26.861c-9.758-9.893-18.135-20.455-24.833-31.222c-6.743-10.739-11.988-21.536-15.97-31.794
45
+ c-4.006-10.258-6.601-20.021-8.441-28.721c-1.917-8.698-2.688-16.429-3.245-22.764c-0.396-6.374-0.584-11.386-0.485-14.752
46
+ c0.026-3.383,0.04-5.188,0.04-5.188c0.003-0.47,0.387-0.848,0.857-0.844C31.725,204.181,32.091,204.536,32.118,204.979z"/>
47
+ <path id="arc2" fill="#F7931E" d="M393.625,225.021c0,0-0.104-1.731-0.297-4.979c-0.049-0.812-0.103-1.718-0.162-2.716
48
+ c-0.029-0.499-0.061-1.021-0.093-1.565c-0.059-0.538-0.119-1.097-0.182-1.679c-0.269-2.323-0.534-4.99-0.906-7.966
49
+ c-0.241-1.486-0.496-3.051-0.763-4.693c-0.133-0.82-0.269-1.658-0.408-2.516c-0.126-0.859-0.286-1.731-0.487-2.616
50
+ c-0.778-3.54-1.458-7.393-2.614-11.413c-0.266-1.009-0.537-2.034-0.812-3.075c-0.264-1.043-0.553-2.096-0.908-3.147
51
+ c-0.672-2.11-1.362-4.281-2.071-6.509c-1.604-4.392-3.258-9.013-5.353-13.684c-4.077-9.377-9.302-19.173-15.844-28.827
52
+ c-6.541-9.647-14.329-19.197-23.385-28.038l-1.683-1.677l-1.766-1.605c-1.182-1.068-2.366-2.142-3.557-3.218
53
+ c-1.163-1.104-2.449-2.08-3.686-3.116c-1.246-1.024-2.496-2.052-3.75-3.083c-1.3-0.972-2.604-1.946-3.91-2.924
54
+ c-1.324-0.953-2.58-2.003-3.953-2.902c-1.354-0.92-2.714-1.843-4.075-2.768l-2.042-1.389l-2.112-1.291
55
+ c-11.209-6.99-23.347-12.819-35.961-17.193c-12.643-4.307-25.78-6.991-38.788-8.151c-1.628-0.128-3.24-0.356-4.867-0.403
56
+ c-1.623-0.068-3.243-0.136-4.858-0.205c-3.224-0.204-6.444-0.09-9.634-0.125l-2.151-0.002l-2.495,0.128
57
+ c-1.66,0.095-3.316,0.141-4.966,0.211l-2.47,0.097c-0.809,0.042-1.532,0.143-2.3,0.21c-1.513,0.146-3.021,0.293-4.522,0.438
58
+ c-2.979,0.166-6.046,0.719-9.053,1.084c-3.023,0.336-5.975,0.917-8.906,1.449c-1.462,0.28-2.93,0.501-4.374,0.794
59
+ c-1.436,0.332-2.863,0.661-4.282,0.989c-1.424,0.318-2.838,0.634-4.245,0.947c-1.396,0.353-2.766,0.767-4.137,1.143
60
+ c-2.735,0.781-5.465,1.47-8.073,2.398c-1.315,0.436-2.621,0.868-3.917,1.296c-1.3,0.42-2.588,0.844-3.827,1.363
61
+ c-2.513,0.967-4.983,1.917-7.408,2.85c-2.367,1.068-4.709,2.091-7.01,3.092c-1.163,0.477-2.267,1.042-3.361,1.598
62
+ c-1.1,0.548-2.188,1.091-3.263,1.627c-1.082,0.532-2.15,1.059-3.206,1.579c-1.025,0.576-2.039,1.145-3.039,1.706
63
+ c-1.992,1.14-4.003,2.158-5.868,3.29c-1.848,1.157-3.655,2.272-5.419,3.344c-1.792,1.037-3.405,2.208-5.008,3.287
64
+ c-1.605,1.084-3.153,2.13-4.64,3.135c-2.895,2.146-5.553,4.117-7.955,5.898c-2.294,1.916-4.409,3.579-6.239,5.05
65
+ c-0.934,0.718-1.729,1.45-2.471,2.111c-0.751,0.655-1.434,1.25-2.044,1.782c-2.474,2.127-3.793,3.262-3.793,3.262l-0.025,0.022
66
+ c-0.358,0.308-0.898,0.267-1.207-0.091c-0.256-0.297-0.271-0.721-0.063-1.032c0,0,0.969-1.457,2.861-4.161
67
+ c0.957-1.342,2.071-3.069,3.577-4.928c1.497-1.867,3.207-4.042,5.195-6.425c2.072-2.294,4.393-4.829,6.954-7.583
68
+ c1.353-1.299,2.761-2.652,4.222-4.055c1.466-1.404,2.982-2.873,4.665-4.248c1.653-1.413,3.373-2.863,5.158-4.347
69
+ c1.799-1.46,3.737-2.85,5.699-4.323c0.988-0.729,1.989-1.466,3.003-2.214c1.05-0.693,2.113-1.395,3.188-2.104
70
+ c1.082-0.705,2.176-1.418,3.282-2.14c1.107-0.723,2.227-1.456,3.411-2.104c9.235-5.625,19.942-10.626,31.724-14.697
71
+ c1.475-0.504,2.951-1.046,4.456-1.527c1.52-0.435,3.049-0.873,4.587-1.314c1.543-0.431,3.096-0.864,4.658-1.299
72
+ c1.57-0.402,3.17-0.716,4.772-1.065c1.604-0.341,3.218-0.685,4.839-1.029c0.808-0.191,1.629-0.319,2.454-0.433
73
+ c0.824-0.123,1.649-0.245,2.478-0.368c3.322-0.481,6.616-1.035,10.133-1.254c1.738-0.127,3.483-0.254,5.236-0.383
74
+ c0.866-0.054,1.775-0.143,2.61-0.166l2.472-0.042c1.65-0.022,3.307-0.069,4.97-0.067l2.497-0.011
75
+ c-0.163,0.003,0.397-0.005,0.4-0.001l0.164,0.008l0.327,0.015l0.655,0.031l1.311,0.062c3.497,0.194,7.019,0.236,10.533,0.702
76
+ c1.757,0.188,3.52,0.377,5.285,0.567c1.767,0.169,3.518,0.523,5.28,0.778c14.083,2.205,28.099,5.979,41.516,11.19
77
+ c13.397,5.272,26.146,12.065,37.788,20.016l2.192,1.471l2.117,1.569c1.408,1.045,2.813,2.087,4.215,3.127
78
+ c2.768,2.124,5.406,4.386,8.06,6.582c1.274,1.16,2.545,2.316,3.813,3.468c1.254,1.164,2.556,2.267,3.731,3.496
79
+ c1.2,1.201,2.396,2.398,3.587,3.591l1.775,1.789l1.689,1.859c9.061,9.819,16.775,20.217,23.014,30.685
80
+ c6.256,10.46,11.099,20.933,14.763,30.855c1.899,4.94,3.31,9.814,4.67,14.425c0.586,2.333,1.157,4.605,1.712,6.814
81
+ c0.297,1.098,0.526,2.196,0.731,3.282c0.215,1.083,0.427,2.15,0.636,3.2c0.923,4.179,1.378,8.165,1.943,11.813
82
+ c0.151,0.911,0.247,1.811,0.318,2.695c0.082,0.882,0.162,1.745,0.24,2.587c0.155,1.684,0.305,3.29,0.445,4.814
83
+ c0.173,3.065,0.257,5.808,0.365,8.183c0.022,0.594,0.045,1.165,0.066,1.714c-0.006,0.545-0.01,1.068-0.015,1.567
84
+ c-0.009,1-0.017,1.908-0.024,2.721c-0.029,3.252-0.045,4.987-0.045,4.987c-0.004,0.47-0.389,0.847-0.857,0.843
85
+ C394.018,225.817,393.652,225.463,393.625,225.021z"/>
86
+ </g>
87
+ <g id="circles">
88
+ <circle id="circle2" fill="#F7931E" stroke-width="9" stroke-miterlimit="10" cx="70.536" cy="110.694" r="36.011"/>
89
+ <circle id="circle1" fill="#F7931E" stroke-width="9" stroke-miterlimit="10" cx="362.721" cy="309.694" r="36.012"/>
90
+ </g>
91
+ </svg>
@@ -0,0 +1 @@
1
+ const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];const o=new URL(__v__("/other/jsenv_logo.svg"),import.meta.url);document.querySelector("#root").innerHTML=`<h1>Hello world!</h1>\n<img class="logo" src=${o} alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`,(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=n,e.onclick=()=>{n++,t.innerHTML=n}})();
@@ -19,6 +19,6 @@
19
19
  </head>
20
20
  <body>
21
21
  <div id="root"></div>
22
- <script type="module" src="/js/main.js?v=959e9684"></script>
22
+ <script type="module" src="/js/main.js?v=64d7dabc"></script>
23
23
  </body>
24
24
  </html>
@@ -1 +1 @@
1
- ("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];const o=new URL(__v__("/other/jsenv_logo.svg"),import.meta.url);document.querySelector("#root").innerHTML=`<h1>Hello world!</h1>\n<img class="logo" src=${o} alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`,(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=n,e.onclick=()=>{n++,t.innerHTML=n}})();
1
+ const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];const o=new URL(__v__("/other/jsenv_logo.svg"),import.meta.url);document.querySelector("#root").innerHTML=`<h1>Hello world!</h1>\n<img class="logo" src=${o} alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`,(()=>{const e=document.querySelector("#counter_button"),t=document.querySelector("#counter_output");t.innerHTML=n,e.onclick=()=>{n++,t.innerHTML=n}})();
@@ -16,9 +16,9 @@
16
16
  "devDependencies": {
17
17
  "@babel/plugin-syntax-import-attributes": "7.26.0",
18
18
  "@jsenv/assert": "4.4.5",
19
- "@jsenv/core": "40.1.3",
19
+ "@jsenv/core": "40.1.5",
20
20
  "@jsenv/eslint-config-relax": "1.4.6",
21
- "@jsenv/plugin-bundling": "2.8.7",
21
+ "@jsenv/plugin-bundling": "2.8.8",
22
22
  "@jsenv/plugin-minification": "1.6.2",
23
23
  "@jsenv/test": "3.6.9",
24
24
  "eslint": "9.22.0",
@@ -0,0 +1,17 @@
1
+ /* eslint-env browser,node */
2
+
3
+ /*
4
+ * This file does not use export const InlineContent = function() {} on purpose:
5
+ * - An export would be renamed by rollup,
6
+ * making it harder to statically detect new InlineContent() calls
7
+ * - An export would be renamed by terser
8
+ * here again it becomes hard to detect new InlineContent() calls
9
+ * Instead it sets "__InlineContent__" on the global object and terser is configured by jsenv
10
+ * to preserve the __InlineContent__ global variable name
11
+ */
12
+
13
+ const globalObject = typeof self === "object" ? self : process;
14
+ globalObject.__InlineContent__ = function (content, { type = "text/plain" }) {
15
+ this.text = content;
16
+ this.type = type;
17
+ };
@@ -1,4 +1,4 @@
1
- import "file:///Users/dmail/Documents/dev/core/dist/build/client/inline_content.js";
1
+ import "file:///Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js";
2
2
 
3
3
  const inlineContent = new __InlineContent__(".logo {\n pointer-events: none;\n height: 40vmin;\n}\n", { type: "text/css" });
4
4
  const stylesheet = new CSSStyleSheet();
@@ -0,0 +1,24 @@
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="/other/jsenv_logo.svg?v=0ad5d0f8" original-href-position="5:43;5:66">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1">
7
+ <script jsenv-injected-by="jsenv:core" content-indented="">
8
+ ;(function() {
9
+ var __versionMappings__ = {
10
+ "/other/jsenv_logo.svg": "/other/jsenv_logo.svg?v=0ad5d0f8"
11
+ };
12
+ window.__v__ = function (specifier) {
13
+ return __versionMappings__[specifier] || specifier
14
+ };
15
+ })();
16
+ </script>
17
+ <style original-position="7:5;20:13" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">body{background:#add8e6}#root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px;font-family:Avenir,Helvetica,Arial,sans-serif}</style>
18
+ <title>Jsenv web page</title>
19
+ </head>
20
+ <body>
21
+ <div id="root"></div>
22
+ <script type="module" src="/js/main.js?v=aff99120" original-src-position="25:27;25:42"></script>
23
+ </body>
24
+ </html>
@@ -0,0 +1,91 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" id="jsenv_logo" viewBox="0 0 430 430" enable-background="new 0 0 430 430">
2
+ <g id="letters">
3
+ <path id="j" fill="#F7931E" d="M78.879,272.229c3.381-0.441,7.056-1.176,9.408-3.822c2.793-2.939,3.234-8.086,3.234-19.111v-63.064
4
+ h19.404v66.74c0,16.023-3.381,23.52-9.555,28.371c-5.292,4.264-14.112,6.174-21.021,6.174L78.879,272.229z M111.072,167.121
5
+ c0,6.174-4.41,10.438-10.143,10.438c-5.292,0-9.702-4.263-9.555-10.438c-0.147-6.468,4.41-10.437,9.849-10.437
6
+ S111.072,160.653,111.072,167.121z"/>
7
+ <path id="s" fill="#F7931E" d="M123.714,240.77c2.793,1.764,8.085,3.822,12.936,3.822c4.998,0,7.791-2.205,7.791-6.469
8
+ c0-3.675-2.058-6.027-8.379-9.702c-11.76-6.615-14.553-14.112-14.553-20.727c0-12.937,9.261-22.639,23.667-22.639
9
+ c6.027,0,10.731,1.47,14.553,3.234l-3.381,14.112c-2.793-1.617-6.174-2.94-9.996-2.94c-4.851,0-7.203,2.94-7.203,6.174
10
+ c0,3.234,1.617,4.998,8.379,8.967c10.584,6.027,14.553,13.524,14.553,21.756c0,14.699-10.584,22.639-25.432,22.639
11
+ c-6.027,0-13.083-1.617-16.464-4.117L123.714,240.77z"/>
12
+ <path id="e" fill="#F7931E" d="M204.414,223.57c0.148,21.756,8.674,26.461,16.906,26.461c4.852,0,8.967-1.176,11.76-2.793l1.764,8.379
13
+ c-3.969,2.205-9.996,3.381-15.582,3.381c-17.052,0-25.872-13.965-25.872-35.722c0-23.08,9.702-37.486,23.961-37.486
14
+ c14.553,0,20.285,15.289,20.285,31.459c0,2.646,0,4.557-0.146,6.321H204.414z M226.76,215.191
15
+ c0.293-14.259-5.145-20.581-10.584-20.581c-7.352,0-11.174,10.878-11.613,20.581H226.76z"/>
16
+ <path id="n" fill="#F7931E" d="M249.836,205.342c0-8.379-0.441-12.643-0.588-18.375h9.85l0.588,8.526h0.293
17
+ c3.088-5.733,8.82-9.702,16.318-9.702c9.85,0,17.199,7.35,17.199,24.55v47.775h-11.318V212.25c0-8.379-1.617-16.905-9.85-16.905
18
+ c-4.705,0-9.262,3.969-10.732,11.613c-0.293,1.764-0.439,3.969-0.439,6.321v44.835h-11.32V205.342z"/>
19
+ <path id="v" fill="#F7931E" d="M313.783,186.966l8.967,39.985c1.029,4.851,2.205,11.172,3.088,17.346h0.441
20
+ c0.734-5.879,1.91-11.907,2.939-17.346l8.82-39.985h11.172l-18.523,71.149h-10.143l-18.521-71.149H313.783z"/>
21
+ </g>
22
+ <g id="arcs">
23
+ <path id="arc1" fill="#F7931E" d="M32.118,204.979c0,0,0.105,1.801,0.302,5.179c0.124,3.4,0.638,8.29,1.434,14.48
24
+ c0.249,1.546,0.511,3.174,0.786,4.882c0.137,0.853,0.278,1.725,0.421,2.617c0.154,0.89,0.376,1.789,0.558,2.712
25
+ c0.384,1.843,0.783,3.761,1.197,5.75c0.444,1.981,1.027,4.008,1.56,6.112c2.274,8.378,5.328,17.708,9.758,27.396
26
+ c4.406,9.688,10.04,19.776,17.062,29.673c7.003,9.901,15.393,19.609,25.102,28.499c9.702,8.888,20.652,17.025,32.581,23.85
27
+ c11.948,6.789,24.834,12.287,38.159,16.203c13.357,3.824,27.155,5.896,40.737,6.35l2.541,0.113l2.542-0.017
28
+ c1.689-0.012,3.376-0.142,5.059-0.152l1.259-0.126h0.157c-0.466,0-0.034,0.113-0.096,0.111l0.329,0.039l0.657-0.012l2.625-0.138
29
+ c1.748-0.094,3.492-0.181,5.229-0.274l2.599-0.14l2.399-0.292c1.596-0.203,3.188-0.354,4.772-0.526
30
+ c3.147-0.236,6.372-0.888,9.541-1.397c12.69-2.107,24.746-5.299,35.916-9.232c2.755-1.075,5.479-2.131,8.182-3.142
31
+ c2.655-1.114,5.222-2.329,7.782-3.459c2.6-1.056,4.984-2.43,7.407-3.636c1.206-0.616,2.401-1.228,3.584-1.832
32
+ c1.189-0.598,2.295-1.31,3.432-1.949c2.248-1.316,4.477-2.577,6.623-3.866c2.099-1.369,4.148-2.706,6.146-4.011
33
+ c2.042-1.258,3.901-2.66,5.735-3.997c1.822-1.352,3.646-2.613,5.355-3.907c1.669-1.351,3.284-2.656,4.843-3.918
34
+ c1.569-1.258,3.121-2.439,4.471-3.723c1.402-1.238,2.746-2.427,4.031-3.563c1.288-1.139,2.548-2.204,3.621-3.327
35
+ c2.193-2.203,4.225-4.131,5.979-5.831c1.697-1.744,3.063-3.304,4.243-4.516c2.34-2.456,3.588-3.767,3.588-3.767l0.026-0.028
36
+ c0.326-0.342,0.867-0.355,1.209-0.029c0.285,0.271,0.341,0.695,0.161,1.026c0,0-0.868,1.598-2.574,4.574
37
+ c-0.854,1.488-1.885,3.349-3.214,5.459c-1.387,2.064-2.967,4.465-4.816,7.108c-0.887,1.355-1.955,2.669-3.051,4.075
38
+ c-1.103,1.406-2.257,2.878-3.46,4.412c-1.185,1.56-2.571,3.036-3.979,4.607c-1.424,1.563-2.899,3.181-4.424,4.853
39
+ c-1.572,1.628-3.282,3.218-5.018,4.893c-1.745,1.662-3.502,3.432-5.49,5.023c-1.957,1.641-3.965,3.323-6.021,5.047
40
+ c-2.111,1.653-4.363,3.226-6.623,4.899c-9.169,6.472-19.718,12.805-31.671,17.869c-11.917,5.107-25.137,9.123-39.146,11.367
41
+ c-3.516,0.507-7.004,1.114-10.719,1.336c-1.834,0.148-3.674,0.319-5.521,0.438l-2.773,0.192l-2.611,0.027
42
+ c-1.74,0.015-3.486,0.03-5.237,0.045l-2.63,0.012l-1.585-0.006l-1.378-0.074c-1.836-0.101-3.676-0.201-5.521-0.302l-2.766-0.157
43
+ l-2.764-0.29c-14.755-1.437-29.532-4.559-43.748-9.26c-14.191-4.788-27.769-11.24-40.221-18.991
44
+ c-12.467-7.743-23.632-16.999-33.41-26.861c-9.758-9.893-18.135-20.455-24.833-31.222c-6.743-10.739-11.988-21.536-15.97-31.794
45
+ c-4.006-10.258-6.601-20.021-8.441-28.721c-1.917-8.698-2.688-16.429-3.245-22.764c-0.396-6.374-0.584-11.386-0.485-14.752
46
+ c0.026-3.383,0.04-5.188,0.04-5.188c0.003-0.47,0.387-0.848,0.857-0.844C31.725,204.181,32.091,204.536,32.118,204.979z"/>
47
+ <path id="arc2" fill="#F7931E" d="M393.625,225.021c0,0-0.104-1.731-0.297-4.979c-0.049-0.812-0.103-1.718-0.162-2.716
48
+ c-0.029-0.499-0.061-1.021-0.093-1.565c-0.059-0.538-0.119-1.097-0.182-1.679c-0.269-2.323-0.534-4.99-0.906-7.966
49
+ c-0.241-1.486-0.496-3.051-0.763-4.693c-0.133-0.82-0.269-1.658-0.408-2.516c-0.126-0.859-0.286-1.731-0.487-2.616
50
+ c-0.778-3.54-1.458-7.393-2.614-11.413c-0.266-1.009-0.537-2.034-0.812-3.075c-0.264-1.043-0.553-2.096-0.908-3.147
51
+ c-0.672-2.11-1.362-4.281-2.071-6.509c-1.604-4.392-3.258-9.013-5.353-13.684c-4.077-9.377-9.302-19.173-15.844-28.827
52
+ c-6.541-9.647-14.329-19.197-23.385-28.038l-1.683-1.677l-1.766-1.605c-1.182-1.068-2.366-2.142-3.557-3.218
53
+ c-1.163-1.104-2.449-2.08-3.686-3.116c-1.246-1.024-2.496-2.052-3.75-3.083c-1.3-0.972-2.604-1.946-3.91-2.924
54
+ c-1.324-0.953-2.58-2.003-3.953-2.902c-1.354-0.92-2.714-1.843-4.075-2.768l-2.042-1.389l-2.112-1.291
55
+ c-11.209-6.99-23.347-12.819-35.961-17.193c-12.643-4.307-25.78-6.991-38.788-8.151c-1.628-0.128-3.24-0.356-4.867-0.403
56
+ c-1.623-0.068-3.243-0.136-4.858-0.205c-3.224-0.204-6.444-0.09-9.634-0.125l-2.151-0.002l-2.495,0.128
57
+ c-1.66,0.095-3.316,0.141-4.966,0.211l-2.47,0.097c-0.809,0.042-1.532,0.143-2.3,0.21c-1.513,0.146-3.021,0.293-4.522,0.438
58
+ c-2.979,0.166-6.046,0.719-9.053,1.084c-3.023,0.336-5.975,0.917-8.906,1.449c-1.462,0.28-2.93,0.501-4.374,0.794
59
+ c-1.436,0.332-2.863,0.661-4.282,0.989c-1.424,0.318-2.838,0.634-4.245,0.947c-1.396,0.353-2.766,0.767-4.137,1.143
60
+ c-2.735,0.781-5.465,1.47-8.073,2.398c-1.315,0.436-2.621,0.868-3.917,1.296c-1.3,0.42-2.588,0.844-3.827,1.363
61
+ c-2.513,0.967-4.983,1.917-7.408,2.85c-2.367,1.068-4.709,2.091-7.01,3.092c-1.163,0.477-2.267,1.042-3.361,1.598
62
+ c-1.1,0.548-2.188,1.091-3.263,1.627c-1.082,0.532-2.15,1.059-3.206,1.579c-1.025,0.576-2.039,1.145-3.039,1.706
63
+ c-1.992,1.14-4.003,2.158-5.868,3.29c-1.848,1.157-3.655,2.272-5.419,3.344c-1.792,1.037-3.405,2.208-5.008,3.287
64
+ c-1.605,1.084-3.153,2.13-4.64,3.135c-2.895,2.146-5.553,4.117-7.955,5.898c-2.294,1.916-4.409,3.579-6.239,5.05
65
+ c-0.934,0.718-1.729,1.45-2.471,2.111c-0.751,0.655-1.434,1.25-2.044,1.782c-2.474,2.127-3.793,3.262-3.793,3.262l-0.025,0.022
66
+ c-0.358,0.308-0.898,0.267-1.207-0.091c-0.256-0.297-0.271-0.721-0.063-1.032c0,0,0.969-1.457,2.861-4.161
67
+ c0.957-1.342,2.071-3.069,3.577-4.928c1.497-1.867,3.207-4.042,5.195-6.425c2.072-2.294,4.393-4.829,6.954-7.583
68
+ c1.353-1.299,2.761-2.652,4.222-4.055c1.466-1.404,2.982-2.873,4.665-4.248c1.653-1.413,3.373-2.863,5.158-4.347
69
+ c1.799-1.46,3.737-2.85,5.699-4.323c0.988-0.729,1.989-1.466,3.003-2.214c1.05-0.693,2.113-1.395,3.188-2.104
70
+ c1.082-0.705,2.176-1.418,3.282-2.14c1.107-0.723,2.227-1.456,3.411-2.104c9.235-5.625,19.942-10.626,31.724-14.697
71
+ c1.475-0.504,2.951-1.046,4.456-1.527c1.52-0.435,3.049-0.873,4.587-1.314c1.543-0.431,3.096-0.864,4.658-1.299
72
+ c1.57-0.402,3.17-0.716,4.772-1.065c1.604-0.341,3.218-0.685,4.839-1.029c0.808-0.191,1.629-0.319,2.454-0.433
73
+ c0.824-0.123,1.649-0.245,2.478-0.368c3.322-0.481,6.616-1.035,10.133-1.254c1.738-0.127,3.483-0.254,5.236-0.383
74
+ c0.866-0.054,1.775-0.143,2.61-0.166l2.472-0.042c1.65-0.022,3.307-0.069,4.97-0.067l2.497-0.011
75
+ c-0.163,0.003,0.397-0.005,0.4-0.001l0.164,0.008l0.327,0.015l0.655,0.031l1.311,0.062c3.497,0.194,7.019,0.236,10.533,0.702
76
+ c1.757,0.188,3.52,0.377,5.285,0.567c1.767,0.169,3.518,0.523,5.28,0.778c14.083,2.205,28.099,5.979,41.516,11.19
77
+ c13.397,5.272,26.146,12.065,37.788,20.016l2.192,1.471l2.117,1.569c1.408,1.045,2.813,2.087,4.215,3.127
78
+ c2.768,2.124,5.406,4.386,8.06,6.582c1.274,1.16,2.545,2.316,3.813,3.468c1.254,1.164,2.556,2.267,3.731,3.496
79
+ c1.2,1.201,2.396,2.398,3.587,3.591l1.775,1.789l1.689,1.859c9.061,9.819,16.775,20.217,23.014,30.685
80
+ c6.256,10.46,11.099,20.933,14.763,30.855c1.899,4.94,3.31,9.814,4.67,14.425c0.586,2.333,1.157,4.605,1.712,6.814
81
+ c0.297,1.098,0.526,2.196,0.731,3.282c0.215,1.083,0.427,2.15,0.636,3.2c0.923,4.179,1.378,8.165,1.943,11.813
82
+ c0.151,0.911,0.247,1.811,0.318,2.695c0.082,0.882,0.162,1.745,0.24,2.587c0.155,1.684,0.305,3.29,0.445,4.814
83
+ c0.173,3.065,0.257,5.808,0.365,8.183c0.022,0.594,0.045,1.165,0.066,1.714c-0.006,0.545-0.01,1.068-0.015,1.567
84
+ c-0.009,1-0.017,1.908-0.024,2.721c-0.029,3.252-0.045,4.987-0.045,4.987c-0.004,0.47-0.389,0.847-0.857,0.843
85
+ C394.018,225.817,393.652,225.463,393.625,225.021z"/>
86
+ </g>
87
+ <g id="circles">
88
+ <circle id="circle2" fill="#F7931E" stroke-width="9" stroke-miterlimit="10" cx="70.536" cy="110.694" r="36.011"/>
89
+ <circle id="circle1" fill="#F7931E" stroke-width="9" stroke-miterlimit="10" cx="362.721" cy="309.694" r="36.012"/>
90
+ </g>
91
+ </svg>
@@ -0,0 +1 @@
1
+ const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;const o=new URL(__v__("/other/jsenv_logo.svg"),import.meta.url);class s extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,t],e.innerHTML=`\n<h1>Hello world!</h1>\n<img class="logo" src=${o} alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`,(e=>{const t=e.querySelector("#counter_button"),o=e.querySelector("#counter_output");o.innerHTML=n,t.onclick=()=>{n++,o.innerHTML=n}})(e)}}customElements.define("my-app",s),document.querySelector("#root").innerHTML="<my-app></my-app>";
@@ -19,6 +19,6 @@
19
19
  </head>
20
20
  <body>
21
21
  <div id="root"></div>
22
- <script type="module" src="/js/main.js?v=37dee9a3"></script>
22
+ <script type="module" src="/js/main.js?v=aff99120"></script>
23
23
  </body>
24
24
  </html>
@@ -1 +1 @@
1
- ("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;const o=new URL(__v__("/other/jsenv_logo.svg"),import.meta.url);class s extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,t],e.innerHTML=`\n<h1>Hello world!</h1>\n<img class="logo" src=${o} alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`,(e=>{const t=e.querySelector("#counter_button"),o=e.querySelector("#counter_output");o.innerHTML=n,t.onclick=()=>{n++,o.innerHTML=n}})(e)}}customElements.define("my-app",s),document.querySelector("#root").innerHTML="<my-app></my-app>";
1
+ const e=new __InlineContent__(".logo{pointer-events:none;height:40vmin}",{type:"text/css"}),t=new CSSStyleSheet;t.replaceSync(e.text);let n=0;const o=new URL(__v__("/other/jsenv_logo.svg"),import.meta.url);class s extends HTMLElement{constructor(){super();const e=this.attachShadow({mode:"open"});e.adoptedStyleSheets=[...e.adoptedStyleSheets,t],e.innerHTML=`\n<h1>Hello world!</h1>\n<img class="logo" src=${o} alt="logo" />\n<p>\n <button id="counter_button">Click me!</button>\n <p>\n Number of clicks: <span id="counter_output"></span>\n </p>\n</p>\n<p>\n Edit <a href="javascript:window.fetch('/.internal/open_file/jsenv_logo.svg')">jsenv_logo.svg</a> and save to test HMR updates.\n</p>\n<a href="https://github.com/jsenv/core" target="_blank">Documentation</a>`,(e=>{const t=e.querySelector("#counter_button"),o=e.querySelector("#counter_output");o.innerHTML=n,t.onclick=()=>{n++,o.innerHTML=n}})(e)}}customElements.define("my-app",s),document.querySelector("#root").innerHTML="<my-app></my-app>";
@@ -18,8 +18,8 @@
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.5",
21
- "@jsenv/core": "40.1.3",
22
- "@jsenv/plugin-bundling": "2.8.7",
21
+ "@jsenv/core": "40.1.5",
22
+ "@jsenv/plugin-bundling": "2.8.8",
23
23
  "@jsenv/plugin-minification": "1.6.2",
24
24
  "@jsenv/eslint-config-relax": "1.4.6",
25
25
  "@jsenv/test": "3.6.9",
@@ -0,0 +1,17 @@
1
+ /* eslint-env browser,node */
2
+
3
+ /*
4
+ * This file does not use export const InlineContent = function() {} on purpose:
5
+ * - An export would be renamed by rollup,
6
+ * making it harder to statically detect new InlineContent() calls
7
+ * - An export would be renamed by terser
8
+ * here again it becomes hard to detect new InlineContent() calls
9
+ * Instead it sets "__InlineContent__" on the global object and terser is configured by jsenv
10
+ * to preserve the __InlineContent__ global variable name
11
+ */
12
+
13
+ const globalObject = typeof self === "object" ? self : process;
14
+ globalObject.__InlineContent__ = function (content, { type = "text/plain" }) {
15
+ this.text = content;
16
+ this.type = type;
17
+ };
@@ -1,4 +1,4 @@
1
- import "file:///Users/dmail/Documents/dev/core/dist/build/client/inline_content.js";
1
+ import "file:///Users/dmail/Documents/dev/core/dist/client/inline_content/inline_content.js";
2
2
 
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", { type: "text/css" });
4
4
  const stylesheet = new CSSStyleSheet();
@@ -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};
@@ -0,0 +1,31 @@
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="/other/preact_logo.svg?v=7aea73c3" original-href-position="5:43;5:67">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1">
7
+ <script type="importmap" jsenv-injected-by="jsenv:versioning" content-indented="">
8
+ {
9
+ "imports": {
10
+ "/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=da45759d"
11
+ }
12
+ }
13
+ </script>
14
+ <script jsenv-injected-by="jsenv:core" content-indented="">
15
+ ;(function() {
16
+ var __versionMappings__ = {
17
+ "/other/preact_logo.svg": "/other/preact_logo.svg?v=7aea73c3"
18
+ };
19
+ window.__v__ = function (specifier) {
20
+ return __versionMappings__[specifier] || specifier
21
+ };
22
+ })();
23
+ </script>
24
+ <style original-position="7:5;22:13" content-indented="" jsenv-cooked-by="jsenv:html_inline_content_analysis">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>
25
+ <title>Jsenv App</title>
26
+ </head>
27
+ <body>
28
+ <div id="root"></div>
29
+ <script type="module" src="/js/main.js?v=5bb2504c" original-src-position="27:27;27:43"></script>
30
+ </body>
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";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 c=()=>{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})]})},i=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:i,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(c,{})}),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,6 @@
1
+ <svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill="#673ab8" d="M16 2l12.12 7v14L16 30 3.88 23V9z"/>
3
+ <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="10.72" ry="4.1" transform="rotate(-37.5 16.007 15.996)"/>
4
+ <ellipse fill="none" stroke="#fff" cx="16" cy="16" rx="4.1" ry="10.72" transform="rotate(-52.5 15.998 15.994)"/>
5
+ <circle fill="#fff" cx="16" cy="16" r="1.86"/>
6
+ </svg>
@@ -26,6 +26,6 @@
26
26
  </head>
27
27
  <body>
28
28
  <div id="root"></div>
29
- <script type="module" src="/js/main.js?v=a73569df"></script>
29
+ <script type="module" src="/js/main.js?v=5bb2504c"></script>
30
30
  </body>
31
31
  </html>
@@ -1 +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"));
1
+ import{d as e,u as t,k as n,_ as o,E as r}from"/jsenv_template_web_preact_node_modules.js";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 c=()=>{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})]})},i=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:i,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(c,{})}),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"));
@@ -21,9 +21,9 @@
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.5",
24
- "@jsenv/core": "40.1.3",
24
+ "@jsenv/core": "40.1.5",
25
25
  "@jsenv/plugin-preact": "1.7.8",
26
- "@jsenv/plugin-bundling": "2.8.7",
26
+ "@jsenv/plugin-bundling": "2.8.8",
27
27
  "@jsenv/plugin-minification": "1.6.2",
28
28
  "@jsenv/eslint-config-relax": "1.4.6",
29
29
  "@jsenv/test": "3.6.9",
@@ -0,0 +1,17 @@
1
+ /* eslint-env browser,node */
2
+
3
+ /*
4
+ * This file does not use export const InlineContent = function() {} on purpose:
5
+ * - An export would be renamed by rollup,
6
+ * making it harder to statically detect new InlineContent() calls
7
+ * - An export would be renamed by terser
8
+ * here again it becomes hard to detect new InlineContent() calls
9
+ * Instead it sets "__InlineContent__" on the global object and terser is configured by jsenv
10
+ * to preserve the __InlineContent__ global variable name
11
+ */
12
+
13
+ const globalObject = typeof self === "object" ? self : process;
14
+ globalObject.__InlineContent__ = function (content, { type = "text/plain" }) {
15
+ this.text = content;
16
+ this.type = type;
17
+ };