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

feat: let babel guess the source type #176

Merged
merged 1 commit into from
Nov 24, 2018
Merged

feat: let babel guess the source type #176

merged 1 commit into from
Nov 24, 2018

Conversation

eventualbuddha
Copy link
Collaborator

Previously babel-codemod hardcoded a value of module for the source type when parsing. This meant that any code not valid in strict mode could not be processed. Now babel-codemod uses a default source type of unambiguous, which means that babel will try to infer the source type. Additionally, this source type can be overridden with the --source-type option.

Closes #175

Previously babel-codemod hardcoded a value of `module` for the source type when parsing. This meant that any code not valid in strict mode could not be processed. Now babel-codemod uses a default source type of `unambiguous`, which means that babel will try to infer the source type. Additionally, this source type can be overridden with the `--source-type` option.

Closes #175
@eventualbuddha eventualbuddha merged commit 3e28978 into master Nov 24, 2018
@eventualbuddha eventualbuddha deleted the source-type branch November 24, 2018 00:49
@babel-codemod-bot
Copy link

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants