@hybridly/vite 0.7.8 → 0.7.9
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/dist/index.cjs +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +28 -29
package/dist/index.cjs
CHANGED
|
@@ -174,7 +174,7 @@ function laravel(options, hybridlyConfig) {
|
|
|
174
174
|
origin: userConfig.server?.origin ?? "__laravel_vite_placeholder__",
|
|
175
175
|
...process.env.LARAVEL_SAIL ? {
|
|
176
176
|
host: userConfig.server?.host ?? "0.0.0.0",
|
|
177
|
-
port: userConfig.server?.port ?? (env.VITE_PORT ? parseInt(env.VITE_PORT) : 5173),
|
|
177
|
+
port: userConfig.server?.port ?? (env.VITE_PORT ? Number.parseInt(env.VITE_PORT) : 5173),
|
|
178
178
|
strictPort: userConfig.server?.strictPort ?? true
|
|
179
179
|
} : void 0,
|
|
180
180
|
...serverConfig ? {
|
|
@@ -271,7 +271,7 @@ function ensureCommandShouldRunInEnvironment(command, env) {
|
|
|
271
271
|
throw new TypeError("You should not run the Vite HMR server in CI environments. You should build your assets for production instead. To disable this ENV check you may set LARAVEL_BYPASS_ENV_CHECK=1");
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
function resolveInput(userConfig, hybridlyConfig,
|
|
274
|
+
function resolveInput(userConfig, hybridlyConfig, _ssr) {
|
|
275
275
|
return userConfig.build?.rollupOptions?.input ?? hybridlyConfig.architecture.application_main_path;
|
|
276
276
|
}
|
|
277
277
|
function resolveDevServerUrl(address, config, userConfig) {
|
|
@@ -450,6 +450,9 @@ async function loadConfiguration() {
|
|
|
450
450
|
return JSON.parse(stdout);
|
|
451
451
|
} catch (e) {
|
|
452
452
|
console.error("Could not load configuration from [php artisan hybridly:config].");
|
|
453
|
+
if (e.stdout) {
|
|
454
|
+
console.error(e.stdout);
|
|
455
|
+
}
|
|
453
456
|
if (await determineDevEnvironment() === "ddev") {
|
|
454
457
|
console.error("This is possibly caused by not starting ddev first.");
|
|
455
458
|
} else if (await determineDevEnvironment() === "lando") {
|
|
@@ -517,7 +520,7 @@ const initialize = (options, config) => {
|
|
|
517
520
|
if (didViewsOrLayoutsChange(updatedConfig, config)) {
|
|
518
521
|
forceRestart("View or layout changed");
|
|
519
522
|
}
|
|
520
|
-
});
|
|
523
|
+
}).catch();
|
|
521
524
|
}
|
|
522
525
|
}
|
|
523
526
|
server.watcher.on("add", handleFileChange);
|
package/dist/index.mjs
CHANGED
|
@@ -155,7 +155,7 @@ function laravel(options, hybridlyConfig) {
|
|
|
155
155
|
origin: userConfig.server?.origin ?? "__laravel_vite_placeholder__",
|
|
156
156
|
...process.env.LARAVEL_SAIL ? {
|
|
157
157
|
host: userConfig.server?.host ?? "0.0.0.0",
|
|
158
|
-
port: userConfig.server?.port ?? (env.VITE_PORT ? parseInt(env.VITE_PORT) : 5173),
|
|
158
|
+
port: userConfig.server?.port ?? (env.VITE_PORT ? Number.parseInt(env.VITE_PORT) : 5173),
|
|
159
159
|
strictPort: userConfig.server?.strictPort ?? true
|
|
160
160
|
} : void 0,
|
|
161
161
|
...serverConfig ? {
|
|
@@ -252,7 +252,7 @@ function ensureCommandShouldRunInEnvironment(command, env) {
|
|
|
252
252
|
throw new TypeError("You should not run the Vite HMR server in CI environments. You should build your assets for production instead. To disable this ENV check you may set LARAVEL_BYPASS_ENV_CHECK=1");
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
function resolveInput(userConfig, hybridlyConfig,
|
|
255
|
+
function resolveInput(userConfig, hybridlyConfig, _ssr) {
|
|
256
256
|
return userConfig.build?.rollupOptions?.input ?? hybridlyConfig.architecture.application_main_path;
|
|
257
257
|
}
|
|
258
258
|
function resolveDevServerUrl(address, config, userConfig) {
|
|
@@ -431,6 +431,9 @@ async function loadConfiguration() {
|
|
|
431
431
|
return JSON.parse(stdout);
|
|
432
432
|
} catch (e) {
|
|
433
433
|
console.error("Could not load configuration from [php artisan hybridly:config].");
|
|
434
|
+
if (e.stdout) {
|
|
435
|
+
console.error(e.stdout);
|
|
436
|
+
}
|
|
434
437
|
if (await determineDevEnvironment() === "ddev") {
|
|
435
438
|
console.error("This is possibly caused by not starting ddev first.");
|
|
436
439
|
} else if (await determineDevEnvironment() === "lando") {
|
|
@@ -498,7 +501,7 @@ const initialize = (options, config) => {
|
|
|
498
501
|
if (didViewsOrLayoutsChange(updatedConfig, config)) {
|
|
499
502
|
forceRestart("View or layout changed");
|
|
500
503
|
}
|
|
501
|
-
});
|
|
504
|
+
}).catch();
|
|
502
505
|
}
|
|
503
506
|
}
|
|
504
507
|
server.watcher.on("add", handleFileChange);
|
package/package.json
CHANGED
|
@@ -1,67 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridly/vite",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.7.9",
|
|
4
5
|
"description": "Vite plugin for Hybridly",
|
|
5
|
-
"
|
|
6
|
-
"hybridly",
|
|
7
|
-
"inertiajs",
|
|
8
|
-
"vite",
|
|
9
|
-
"vite-plugin"
|
|
10
|
-
],
|
|
6
|
+
"author": "Enzo Innocenzi <enzo@innocenzi.dev>",
|
|
11
7
|
"license": "MIT",
|
|
8
|
+
"funding": "https://github.com/sponsors/innocenzi",
|
|
9
|
+
"homepage": "https://github.com/hybridly/hybridly/tree/main/packages/vite#readme",
|
|
12
10
|
"repository": {
|
|
13
11
|
"type": "git",
|
|
14
12
|
"url": "git+https://github.com/hybridly/hybridly.git",
|
|
15
13
|
"directory": "packages/vite"
|
|
16
14
|
},
|
|
17
|
-
"funding": "https://github.com/sponsors/innocenzi",
|
|
18
|
-
"author": "Enzo Innocenzi <enzo@innocenzi.dev>",
|
|
19
|
-
"type": "module",
|
|
20
|
-
"homepage": "https://github.com/hybridly/hybridly/tree/main/packages/vite#readme",
|
|
21
15
|
"bugs": {
|
|
22
16
|
"url": "https://github.com/hybridly/hybridly/issues"
|
|
23
17
|
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"hybridly",
|
|
20
|
+
"inertiajs",
|
|
21
|
+
"vite",
|
|
22
|
+
"vite-plugin"
|
|
23
|
+
],
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"provenance": true,
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"sideEffects": false,
|
|
29
|
-
"files": [
|
|
30
|
-
"dist",
|
|
31
|
-
"*.d.ts"
|
|
32
|
-
],
|
|
33
29
|
"exports": {
|
|
34
30
|
".": {
|
|
35
|
-
"
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
36
32
|
"import": "./dist/index.mjs",
|
|
37
|
-
"
|
|
33
|
+
"require": "./dist/index.cjs"
|
|
38
34
|
}
|
|
39
35
|
},
|
|
40
36
|
"main": "dist/index.cjs",
|
|
41
37
|
"module": "dist/index.mjs",
|
|
42
38
|
"types": "dist/index.d.ts",
|
|
39
|
+
"files": [
|
|
40
|
+
"*.d.ts",
|
|
41
|
+
"dist"
|
|
42
|
+
],
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"vite": "^5.0.8",
|
|
45
45
|
"vue": "^3.2.45"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
48
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
49
49
|
"fast-glob": "^3.3.2",
|
|
50
50
|
"local-pkg": "^0.5.0",
|
|
51
51
|
"magic-string": "^0.30.10",
|
|
52
|
-
"picocolors": "^1.0.
|
|
53
|
-
"
|
|
54
|
-
"unplugin-
|
|
55
|
-
"unplugin-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"@hybridly/core": "0.7.8"
|
|
52
|
+
"picocolors": "^1.0.1",
|
|
53
|
+
"unplugin-auto-import": "^0.17.6",
|
|
54
|
+
"unplugin-icons": "^0.19.0",
|
|
55
|
+
"unplugin-vue-components": "^0.27.2",
|
|
56
|
+
"vite-plugin-run": "^0.5.2",
|
|
57
|
+
"@hybridly/core": "0.7.9"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
|
-
"@iconify/json": "^2.2.
|
|
62
|
-
"rollup": "^4.
|
|
63
|
-
"vite": "^5.2
|
|
64
|
-
"vue": "^3.4.
|
|
60
|
+
"@iconify/json": "^2.2.223",
|
|
61
|
+
"rollup": "^4.18.0",
|
|
62
|
+
"vite": "^5.3.2",
|
|
63
|
+
"vue": "^3.4.31"
|
|
65
64
|
},
|
|
66
65
|
"scripts": {
|
|
67
66
|
"build": "unbuild",
|