Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-tooling-transpile): support JS-based babel config files #970

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

petermuessig
Copy link
Member

Fixes #966

@petermuessig petermuessig merged commit 35cfa45 into main Mar 4, 2024
5 checks passed
@petermuessig petermuessig deleted the fix/JSBabelConfig branch March 4, 2024 16:00
@BenReim
Copy link
Contributor

BenReim commented Mar 5, 2024

Thanks for the fix, Peter! 🎉

// no JSON so we let Babel lookup the configuration file with the Babel API
const partialConfig = await babel.loadPartialConfigAsync({ cwd });
// but we only extract the presets and plugins and ignore the other properties
babelConfigOptions = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petermuessig Is it really intended to ignore other babel config options, such as the targets property?
The docu of the task seems to suggest otherwise:

The following configuration options will only be taken into account if no inline babel configuration is maintained in the ui5.yaml as babelConfig or no external babel configuration exists in any configuration file as described in Babels configuration section

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, if I enable more, I need to rework the util.js a bit - will require a bit more time then...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui5-tooling-transpile] Support babel javascript configuration files
2 participants