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.

`tsup-node` should not mark module alias as external

See original GitHub issue

If you have a path alias like @app/* configured in tsconfig.json and run tsup-node against your files, @app will be accidentally marked as external, it needs to be fixed here:

https://github.com/egoist/tsup/blob/6075c803126390eb5660b26419c6aea57bcf8763/src/esbuild/external.ts#L17-L22

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
egoistcommented, Sep 16, 2021

Fow now just use the command tsup instead.

0reactions
github-actions[bot]commented, Nov 25, 2021

🎉 This issue has been resolved in version 5.9.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module Resolution or Import Alias: The Final Guide - Raul Melo
Tired to have weird imports? It's time to learn how can you enable aliases to your imports and let code more organized.
Read more >
Webpack resolve.alias does not work with typescript?
This solved my problem: we were using a custom module syntax which defined aliases to files other than index . Renaming the files...
Read more >
Typescript – How to solve the problem with unresolved path ...
The actual cause of the issue is that the tsc compiler does not transpiles correctly the path aliases to absolute (real) paths.
Read more >
External check for Domain or Domain Alias match - Drupal
BTW, it seems that DomainAliasLoader will give me something of what I want, but it's marked deprecated, so I'd rather not use it....
Read more >
Elixir nested modules, imports, and aliases - Cultivate
Nested is really just an alias to the atom :"Elixir. ... Nesting do def outer, do: :outer defmodule Nested do # WILL NOT...
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