Build fails with tsconfig path alias (@/*)
**Description:**
Using TypeScript path aliases like `@/enum/tags` works in VSCode, but `sand build` fails:
```
Error: Cannot find module '@/enum/tags'
```
**Steps to Reproduce:**
1. tsconfig.json:
```json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
```
2. Code using the alias:
```ts
// src/enum/tags.ts
import { Tag } from 'sandstone';
export const ENIMY = Tag('entity_types', 'enimy', [
"#skeletons",
"minecraft:zombie",
"minecraft:piglin",
"spider",
"enderman",
"shulker",
"drowned",
"husk",
"stray",
]);
// some other file
import { ENIMY } from '@/enum/tags';
```
3. Run build:
```bash
pnpm build
```
**Expected:**
Sandstone should resolve the alias like TypeScript does.
**Environment:**
* Sandstone CLI: 0.5.4
* OS: Windows
0 条评论