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
{{ message }}
Repository navigation
web_package and ts_devserver use different root paths #728
ts_devserver and web_package treat bazel-out/genfiles differently.
ts_devserver strips all references to bazel-out/genfiles and treats bazel-out/genfiles/src-root the same. web_package does not strip bazel-out/genfiles
Minimal Reproduction
(coming soon, if necessary)
Anything else relevant?
ts_devserver and web_package would preferably share the same logic for this
what would the additional_root_paths look like? I wouldn't expect a user needs to configure tools to resolve from all three roots, that should be built-in (meaning bazel-bin/src/foo, bazel-genfiles/src/foo, and src/foo should all be addressed the same way)
changed the title [-]variables in additional_root_paths inconsistent between web_package and ts_devserver[/-][+]web_package and ts_devserver use different root paths[/+]on Apr 30, 2019
Activity
alexeagle commentedon Apr 29, 2019
what would the
additional_root_pathslook like? I wouldn't expect a user needs to configure tools to resolve from all three roots, that should be built-in (meaningbazel-bin/src/foo,bazel-genfiles/src/foo, andsrc/fooshould all be addressed the same way)jbedard commentedon Apr 29, 2019
Ideally (correct me if I'm wrong...):
bazel-*would never show up in a urlts_devserverandweb_packageadditional_root_pathsto (consistently) strip other pathsRight now:
ts_devserverswaps/bazel-out/darwin-fastbuild/binwith/{workspace}, whereweb_packagedoes notweb_packagestrips the path to the BUILD target,ts_devserverdoes for some but not others (not those inbazel-*?)I guess I tried achieving this by manually setting
additional_root_pathsto contain thebazel-outdir, where it should just happen automatically?(then I got confused and assumed the inconsistency was because of inconsistent var support, which might be completely wrong...)
jbedard commentedon Apr 29, 2019
I think this can be resolved by just adjusting https://github.com/bazelbuild/rules_nodejs/blob/0.28.0/internal/web_package/web_package.bzl#L77-L81 - and maybe share that logic with
ts_devserver...I'll try to come up with a fix.
[-]variables in additional_root_paths inconsistent between web_package and ts_devserver[/-][+]web_package and ts_devserver use different root paths[/+]fix(web_package): normalize root paths consistently with ts_devserver
jbedard commentedon Apr 30, 2019
I've updated the issue description.
fix(web_package): normalize root paths consistently with ts_devserver
fix(web_package): normalize root paths consistently with ts_devserver
Initial Toolchain Support