-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Description
Is your feature request related to a problem? Please describe.
Hello team,
I'm using ui5-tooling-transpile for a tsapp and reference a local tslib with namespace "sap.crun.shared.app", following the setup in this project.
In addition I am using @dwc/ui5-middleware-dwc for local development. This brings a conflict:
- ui5-tooling-transpile relies on the path prefix /resources/sap/crun/shared/app/ when checking if a resource is applicable for transpilation
- ui5-middleware-dwc hardwires all local resources to the prefix "/__dwc_apps/" and in addition uses a dot notation for the namespace.
As a result the .ts files of the library project are not considered as relevant and will not get transpiled.
As a hack I have done this local modification of the transpile middleware to prove the analysis:
if (pathWithFilePattern.startsWith("/__dwc_apps/")) {
pathWithFilePattern = pathWithFilePattern.replace("/__dwc_apps/sap.crun.shared.app/", "/resources/sap/crun/shared/app/");
config.debug && log.verbose(`Lookup dwc resource ${pathWithFilePattern}`);
}
Describe the solution you'd like
Would it be possible to supply such a mapping via configuration? And maybe enxtend the reader also consider both /a/b/c and a.b.c?
Describe alternatives you've considered
Alternative could be to change the dwc middleware.
Additional context
Metadata
Metadata
Assignees
Labels
No labels