@jalvin/vite-plugin 2.0.42 → 2.0.44

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 (2) hide show
  1. package/dist/index.js +25 -25
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -28,31 +28,31 @@ import { compile } from "@jalvin/compiler";
28
28
  const VIRTUAL_ENTRY = "virtual:@jalvin/app-entry";
29
29
  const VIRTUAL_ENTRY_RESOLVED = "\0virtual:@jalvin/app-entry";
30
30
  function generateIndexHtml(title, scriptSrc) {
31
- return `<!DOCTYPE html>
32
- <html lang="en">
33
- <head>
34
- <meta charset="UTF-8" />
35
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
36
- <title>${title}</title>
37
- <style>
38
- *, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
39
- html, body { height: 100%; margin: 0; overflow-x: hidden; }
40
- body {
41
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
42
- background: #fafafa;
43
- color: #1c1c1c;
44
- -webkit-text-size-adjust: 100%;
45
- text-size-adjust: 100%;
46
- }
47
- #root { height: 100%; }
48
- button { touch-action: manipulation; }
49
- input, textarea, select { font-size: 1rem; }
50
- </style>
51
- </head>
52
- <body>
53
- <div id="root"></div>
54
- <script type="module" src="${scriptSrc}"></script>
55
- </body>
31
+ return `<!DOCTYPE html>
32
+ <html lang="en">
33
+ <head>
34
+ <meta charset="UTF-8" />
35
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
36
+ <title>${title}</title>
37
+ <style>
38
+ *, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
39
+ html, body { height: 100%; margin: 0; overflow-x: hidden; }
40
+ body {
41
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
42
+ background: #fafafa;
43
+ color: #1c1c1c;
44
+ -webkit-text-size-adjust: 100%;
45
+ text-size-adjust: 100%;
46
+ }
47
+ #root { height: 100%; }
48
+ button { touch-action: manipulation; }
49
+ input, textarea, select { font-size: 1rem; }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <div id="root"></div>
54
+ <script type="module" src="${scriptSrc}"></script>
55
+ </body>
56
56
  </html>`;
57
57
  }
58
58
  function generateEntryModule(entryFilePath, component, runtimeImport) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jalvin/vite-plugin",
3
- "version": "2.0.42",
3
+ "version": "2.0.44",
4
4
  "description": "Vite plugin for the Jalvin language — import .jalvin files directly",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "vite": ">=5.0.0"
22
22
  },
23
23
  "dependencies": {
24
- "@jalvin/compiler": "2.0.42"
24
+ "@jalvin/compiler": "2.0.44"
25
25
  },
26
26
  "devDependencies": {
27
27
  "typescript": "^5.4.0",