ui5-community / ui5-community/babel-plugin-transform-modules-ui5
Ignore certain files from applying sap.ui.define
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 33
- Forks
- 20
- Avg merge
- 3h 22m
- Merged PRs (30d)
- 1
Description
Hello,
I have a question regarding the process which converts all typescript files into UI5-Like JS files. It seems to me that basically every TypeScript files receives the sap.ui.define addition when needed / possible. Now I have a Service-Worker in our UI5 App which definitely doesn't need the sap.ui.define addition. Is there any way right not to let the transformation to UI5 modules know, to ignore certain files whilst still transpiling TS to JS?
If not, would that be something that could be implemented? I would look myself into this if no other option is available today.
Kind regards
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue concerns the TypeScript-to-UI5-like-JS transformation in this Babel plugin. Start by locating the transformation that adds sap.ui.define and determine how files such as a service worker could be excluded while TypeScript-to-JS transpilation remains enabled. Done means selected files omit sap.ui.define and other TypeScript files retain the existing transformation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, typescript
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100