Skip to content

Commit

Permalink
fix: resolve paths for entry_client, entry_server, index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff committed Apr 5, 2024
1 parent 3c9bbb7 commit c766325
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ydcjeff/ezedge",
"version": "0.0.8",
"version": "0.0.10",
"exports": {
".": "./src/runtime/mod.ts",
"./vite": "./src/vite/mod.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/vite/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ export function ezedge(): Plugin {
return {
name: 'ezedge',
config({ build, root = process.cwd() }, { isSsrBuild, isPreview }) {
entry_server_path = get_entry(path.join(root, 'src/entry_server'));
entry_server_path = get_entry(path.resolve(root, 'src/entry_server'));
if (!entry_server_path) return;
entry_client_path = get_entry(path.join(root, 'src/entry_client'), !0);
template_path = path.join(root, 'index.html');
entry_client_path = get_entry(path.resolve(root, 'src/entry_client'), !0);
template_path = path.resolve(root, 'index.html');

return {
appType: 'custom',
Expand Down

0 comments on commit c766325

Please sign in to comment.