Skip to content

Missing feature resolveFullPaths #60

Description

I'm using swc to build a project that works with modules

{
// ...
"type": "module"
// ...
}

when I build using the swc cli it doesn't resolve all the paths and puts .js at the end

examples

import { database } from '#/database/drizzle'

should look like this when the build is complete

import { database } from './database/drizzle.js'

There should be an option to resolve fullpaths like this package implements.
Using this package you can use an argument that resolves all paths

https://www.npmjs.com/package/tsc-alias

// ...
  "tsc-alias": {
    "resolveFullPaths": true
  }
/// ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions