question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using TS Paths as aliases

See original GitHub issue

Current Behavior

I have an src folder which has index.ts in it and two subfolders plugins and utils, each with more TS files. index.ts imports most of these files from subfolders, but they are neither bundled nor independently compiled. Only their types are correctly output, however.

Expected behavior

  1. Output a compiled JS file for each TS file imported by index.ts so it can be imported by the compiled index.js OR
  2. Bundle each originally imported file inside the index.js output file

Suggested solution(s)

Currently no idea.

Additional context

Your environment

Software Version(s)
TSDX 0.11.0
TypeScript 3.7.2
Browser
npm/Yarn 6.11.3 / 1.19.1
Node 10.16.3
Operating System MacOS

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jlkiricommented, Dec 22, 2019

@ambroseus Thanks, seems to be working now. I’m closing the issue.

1reaction
ambroseuscommented, Dec 15, 2019

@jlkiri while PR is under review, you can test fixed version yarn add @ambroseus/tsdx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Path aliases with TypeScript in Node.js - DEV Community ‍ ‍
I've just released a new package Alias HQ, which allows you to reuse your js/tsconfig.json path aliases in Webpack, Jest, Rollup, or any...
Read more >
How To Configure Path Aliases With TypeScript
Path aliasing is a great feature to add to your TypeScript projects. It makes your code easier to read and gets you more...
Read more >
TypeScript Path Aliases - Saleor Tutorial
Path Alias is a TypeScript configuration that maps a custom alias to a path in your project. Thanks to path aliases, the import...
Read more >
Path aliases with TypeScript in Node.js - Level Up Coding
In this article, I will walk you through setting up path aliases in your TypeScript project and show you how to clean up...
Read more >
How to configure and resolve path alias with a Typescript Project
Path alias is a way to define an absolute path in your typescript project with a word, path or a character. ... The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found