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

@jitesoft/babel-preset-main

Package Overview
Dependencies
Maintainers
0
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jitesoft/babel-preset-main

Babel preset with configurations for Jitesoft projects.

  • 5.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54
decreased by-32.5%
Maintainers
0
Weekly downloads
 
Created
Source

@jitesoft/babel-preset-main

npm (scoped) Known Vulnerabilities pipeline status npm Back project

Main preset for Jitesoft javascript projects which uses babel.

Includes the following presets and plugins:

@babel/preset-env

@babel/plugin-proposal-async-do-expressions
@babel/plugin-proposal-decorators
@babel/plugin-proposal-export-default-from
@babel/plugin-proposal-function-bind
@babel/plugin-proposal-partial-application
@babel/plugin-proposal-pipeline-operator
@babel/plugin-proposal-record-and-tuple
@babel/plugin-proposal-throw-expressions
@babel/plugin-transform-object-assign
@babel/plugin-transform-runtime
@babel/runtime-corejs3
@babel/plugin-proposal-regexp-modifiers

Requires corejs (v 3+) and @babel/core.

Options

This preset uses the same options as preset-env including the options that the different plugins have.
Other than those, the following options are possible to use:

  • exclude - Takes an array of plugins that should NOT be used (full plugin name including @babel) (defaults to []).
  • mode - Flags build mode (web, node or undefined for default).
    • node will set the targets value to node >= 14.
    • web will set the targets value to defaults.
    • undefined/default will set the targets value to defaults, node >= 12.
  • recordAndTuple
    • syntaxType (defaults to 'hash)
    • polyfill (defaults to false)
    • polyfillModuleName (defaults to peerDependency @bloomberg/record-tuple-polyfill)
  • decorators
    • version (defaults to 2023-01)
  • pipeline
    • poposal (defaults to hack)
    • topicToken (defaults to ^^)

Excluding

When excluding plugins and presets, the values checked are not the whole name with scope and all. So you can use shorter forms in your exclude array.
The following values are checked with a indexOf check:

preset-env                             => @babel/preset-env
decorators                             => @babel/plugin-proposal-decorators
transform-runtime                      => @babel/plugin-transform-runtime
partial-application                    => @babel/plugin-proposal-partial-application
throw-expressions                      => @babel/plugin-proposal-throw-expressions
async-do-expressions                   => @babel/plugin-proposal-async-do-expressions
function-bind                          => @babel/plugin-proposal-function-bind
pipeline-operator                      => @babel/plugin-proposal-pipeline-operator
record-and-tuple                       => @babel/plugin-proposal-record-and-tuple
export-default-from                    => @babel/plugin-proposal-export-default-from
object-assign                          => @babel/plugin-transform-object-assign
regexp-modifiers                       => @babel/plugin-proposal-regexp-modifiers

Keywords

FAQs

Package last updated on 28 Oct 2024

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