Skip to content

[ts-transform-paths] does not work for .js imports #27

@falkenhawk

Description

@falkenhawk
{
  "compilerOptions": {
    "allowJs": true,
    "baseUrl": "./src"
    // ...
  }
}

having e.g. src/helpers/time.js and in src/modules/index.ts:

import 'helpers/time';

it's not transformed to require('../helpers/time'); but left out as require('helpers/time')... which breaks execution

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions