You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "devmode" output from ts_library is intended to be used in concatjs bundler, so we always produce "named UMD" outputs.
You have two choices:
have a runtime layout that matches your sources. Choose a name for your workspace ("backend" in this case) that is resolvable at runtime (eg. tsickle does this by naming the workspace the same as the npm package that they publish)
use the module_name attribute on ts_library so that we name the module whatever you need at runtime. This is our monorepo support feature that lets you declare arbitrary packages in a subfolder in your tree
🐞 bug report
Affected Rule
The issue is caused by the rule:Possibly ts_library
Is this a regression?
Yes, the previous version in which this bug was not present was: ....Not sure.
Tried with bazel/typescript 0.29 and 0.37, and both seems to have this issue.
Description
A clear and concise description of the problem...typescript file with relative imports, turned into absolute import after compilation.
bootstrapper.ts:
tsconfig:
BUILD File:
compiled file looks like this:
This is what I get back but when I run it it wont work because it doesn't know what backend/bh-orders-app/resources/static-site refers to .
Directory structure:
🔬 Minimal Reproduction
Example Repo: https://github.com/wimzyLive/bhavnastitch/tree/master/backend
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:The text was updated successfully, but these errors were encountered: