ui5-community / ui5-community/babel-plugin-transform-modules-ui5

Ignore certain files from applying sap.ui.define

Open
#136 6 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.