New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@titanium-sdk/babel-preset-app

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@titanium-sdk/babel-preset-app

Default Babel preset for Titanium app projects

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
5
Weekly downloads
 
Created
Source

@titanium-sdk/babel-preset-app

This is the default Babel preset used in Titanium app projects that have Webpack enabled.

ℹ️ Note: The Titanium CLI will automatically configure this preset based on your current build command. If you want to also include this preset in your third-party libraries you need to configure it yourself.

Included in this Preset

@babel/preset-env

preset-env automatically determines the transforms and polyfills to apply based on your current build target.

@babel/plugin-transform-runtime

transform-runtime avoids inlining helpers in every file. This is enabled for helpers only, since polyfills are handled by babel-preset-env.

babel-plugin-transform-titanium

babel-plugin-transform-titanium optimizes your Titanium SDK applications by inlining various static values. Once inlined, other babel plugins may perform additional optimizations to help strip away "dead code".

Options

env

All options from @babel/preset-env are supported under the env key.

titanium

All options from babel-plugin-transform-titanium are supported under the titanium key.

Default configuration

This preset will be automatically configured when used in Titanium app projects. The default options are:

  • env

    • useBuiltIns: false: Disabled for now because the Titanium core runtime already bundles all neccessary polyfills. See TIMOB-27629 for a planned improvement of this option.
    • targets: Will be set depending on the platform you build for. On Android this is the V8 version Titanium was build for. On iOS this is either the configured <min-ios-ver> of your project, or the default minimum supported iOS version of the SDK you are building with.
  • titanium

    • deploytype: The deployment type of the issued build command.
    • platform: The platform you are building for.
    • target: The deployment target you are building for.
    • Ti: Will be populated with values from the SDK you are building with.

Contributions

Open source contributions are greatly appreciated! If you have a bugfix, improvement or new feature, please create an issue first and submit a pull request against master.

Getting Help

If you have questions about the Titanium Babel preset, feel free to reach out on Stackoverflow or the #helpme channel on TiSlack. In case you find a bug related to this library, create a new issue or open a new JIRA ticket.

License

Apache License, Version 2.0

Keywords

FAQs

Package last updated on 06 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc