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(jsanalyze): integrate babel-plugin-transform-titanium #131
Conversation
New dependencies added: babel-plugin-transform-titaniumAuthor: cwilliams Description: Replace known values in Titanium apps to allow for further simplification via dead code/evaluation in babel minify Homepage: http://npmjs.com/package/babel-plugin-transform-titanium
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me!
Merging to allow integrating into tidev/titanium-sdk/pull/11400
JIRA: https://jira.appcelerator.org/browse/TIMOB-27167
Description
Integrates appcelerator/babel-plugin-transform-titanium 0.1.1
Will require changes to appcelerator/titanium_mobile to pass along the options used by the plugin.
The goal here is pass along an object with static values about the target platform/app that our custom babel plugin can use to inline the static values and replace typical platform sniffing expressions. (As well as do some of what appcelerator/alloy has done in it's compile for years, like having special
OS_*
,DIST_*
,ENV_*
defines). See the plugin's README for more details.