Using TS Paths as aliases
See original GitHub issueCurrent 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
- Output a compiled JS file for each TS file imported by
index.ts
so it can be imported by the compiledindex.js
OR - 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:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ambroseus Thanks, seems to be working now. I’m closing the issue.
@jlkiri while PR is under review, you can test fixed version
yarn add @ambroseus/tsdx