-
Notifications
You must be signed in to change notification settings - Fork 504
Relative imports are treated as external on Windows #87
Copy link
Copy link
Closed
Labels
kind: bugSomething isn't workingSomething isn't workingtopic: TS Paths AliasesRelated to using aliases with TypeScript pathsRelated to using aliases with TypeScript paths
Description
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 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't workingtopic: TS Paths AliasesRelated to using aliases with TypeScript pathsRelated to using aliases with TypeScript paths