Skip to content

Relative imports are treated as external on Windows #87

@gevalo1

Description

@gevalo1

Current Behavior

My code isn't getting bundled because tsdx treats everything as external modules, the resulting bundle only contains the compiled index.ts file.

Expected behavior

My files shouldn't be treated as external modules.

Suggested solution(s)

Could it be something related to the external function? https://github.com/palmerhq/tsdx/blob/v0.5.7/src/utils.ts#L19

Additional context

I'm getting the following warning for all my .ts files (except the root index.ts file):

No name was provided for external module 'C:/xyz/xyz/xyz/xyz.ts' in output.globals – guessing 'xyz_ts'

Your environment

Software Version(s)
TSDX 0.5.7
TypeScript 3.4.5
Browser Chrome Version 74.0.3729.131
npm/Yarn Node v10.11.0, npm 6.4.1
Operating System Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't workingtopic: TS Paths AliasesRelated to using aliases with TypeScript paths

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions