Skip to content

Commit

Permalink
feat(vite): error messages when .server files are referenced by client
Browse files Browse the repository at this point in the history
  • Loading branch information
pcattori committed Dec 12, 2023
1 parent 825a907 commit 906f138
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 176 deletions.
4 changes: 3 additions & 1 deletion integration/helpers/vite-template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"forceConsistentCasingInFileNames": true,
"baseUrl": ".",
"paths": {
"~/*": ["./app/*"]
"~/*": ["./app/*"],
"#dir/*": ["./app/.server/*"],
"#file": ["./app/utils.server"]
},
"noEmit": true
}
Expand Down
2 changes: 1 addition & 1 deletion integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"tailwindcss": "^3.3.0",
"type-fest": "^4.0.0",
"typescript": "^5.1.0",
"vite-tsconfig-paths": "^4.2.1"
"vite-tsconfig-paths": "^4.2.2"
}
}
Loading

0 comments on commit 906f138

Please sign in to comment.