Skip to content

The alias path package in independent config file is invalid #395

@apades

Description

@apades

Clear and concise description of the problem

Project tsconfig

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@root/*": ["src/*"]
    }
}

tsdown.ts

import { defineConfig } from 'tsdown'
import { omit } from '@root/utils'

export default defineConfig({
 // ...
})

thorw error

ERROR  Error: Cannot find module '@root/utils'

Suggested solution

The tsconfig of the project should be loaded in independent config file

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions