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

Remove @babel/preset-typescript defaults #273

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

tomdracz
Copy link
Collaborator

Summary

Fixes #267

I was thinking of doing something similar to SWC rules https://github.com/shakacode/shakapacker/blob/master/package/swc/index.js#L28-L33 but in the end decided it brings no value realistically.
The setting in SWC to figure out config from the file was added to go around the limitations there, Babel should be already correctly figuring out file types and behaviour from the extensions with the default preset settings.

Pull Request checklist

_Remove this line after checking all the items here. If the item is not applicable to the PR, both check it out and wrap it by

  • Update CHANGELOG file
    Add the CHANGELOG entry at the top of the file.

@tomdracz tomdracz added this to the v7 milestone Mar 31, 2023
Copy link
Contributor

@ahangarha ahangarha left a comment

Choose a reason for hiding this comment

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

Thanks,

My only concern is related to the Shakapacker version for this change to be applied.

@justin808
Should we have this for version 7 or version 6? As per your comment, I think it is better to have this for version 6.

@tomdracz
Copy link
Collaborator Author

tomdracz commented Apr 3, 2023

Thanks,

My only concern is related to the Shakapacker version for this change to be applied.

@justin808 Should we have this for version 7 or version 6? As per your comment, I think it is better to have this for version 6.

With this being potentially breaking, I would keep it for v7 probably. Have we got any other stuff to go into v6?

@justin808 justin808 merged commit 72ed559 into master Apr 4, 2023
@justin808 justin808 deleted the remove-babel-preset-typescript-defaults branch April 4, 2023 08:05
tomdracz added a commit that referenced this pull request Apr 18, 2023
* Remove default options passed to @babel/preset-typescript
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.

Are the '@babel/preset-typescript' options in the provided babel presets sensible?
3 participants