@pracht/vite-plugin 0.7.4 → 0.7.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/dist/index.mjs +3 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1937,12 +1937,14 @@ function createPrachtServerModuleSource(options = {}, buildOptions = {}) {
|
|
|
1937
1937
|
function createPrachtDevModuleSource(options = {}, buildOptions = {}) {
|
|
1938
1938
|
const resolved = resolveOptions(options);
|
|
1939
1939
|
return [
|
|
1940
|
-
"import { resolveApp } from \"@pracht/core/server\";",
|
|
1940
|
+
"import { resolveApp, resolveApiRoutes } from \"@pracht/core/server\";",
|
|
1941
1941
|
resolved.pagesDir ? generatePagesAppInlineSource(resolved, buildOptions.root) : `import { app } from ${JSON.stringify(resolved.appFile)};`,
|
|
1942
1942
|
"",
|
|
1943
1943
|
createPrachtRegistryModuleSource(resolved),
|
|
1944
1944
|
"",
|
|
1945
1945
|
"export const resolvedApp = resolveApp(app);",
|
|
1946
|
+
`export const apiRoutes = resolveApiRoutes(Object.keys(apiModules), ${JSON.stringify(resolved.apiDir)});`,
|
|
1947
|
+
`export const buildTarget = ${JSON.stringify(resolved.adapter?.id ?? "node")};`,
|
|
1946
1948
|
""
|
|
1947
1949
|
].join("\n");
|
|
1948
1950
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pracht/vite-plugin",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Vite plugin for Pracht apps with virtual modules, dev SSR, prerendering, route inspection, and multi-adapter builds.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pracht",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@preact/preset-vite": "^2.10.5",
|
|
46
46
|
"@prefresh/vite": "^2.0.0",
|
|
47
|
-
"@pracht/
|
|
48
|
-
"@pracht/
|
|
47
|
+
"@pracht/adapter-node": "0.3.8",
|
|
48
|
+
"@pracht/core": "0.12.0",
|
|
49
49
|
"@pracht/preact-ssr-precompile": "0.1.2",
|
|
50
50
|
"@pracht/capabilities": "0.1.1"
|
|
51
51
|
},
|