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

@seamly/babel-preset

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seamly/babel-preset

Default babel-preset used within @seamly implementations

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by18.18%
Maintainers
0
Weekly downloads
 
Created
Source

Seamly Babel-Preset

This is the default babel-preset for @seamly/* implementations.

Installation

yarn add -D @seamly/babel-preset
// or
npm install -D @seamly/babel-preset

Default Options

{
  env: undefined,
  transforms: {
    jsx: {
      runtime: 'automatic',
      importSource: 'preact',
    },
    runtime: {
      absoluteRuntime: true,
      helpers: true,
      corejs: 3,
      regenerator: true,
      useESModules: true,
    },
  },
}

Presets

@babel/preset-env can be enabled by providing preset options

Transforms

The following transforms are enabled by default, with default options, and can be disabled by providing false or modified by providing options which will be merged.

Disabling transforms

Transforms can be disabled by providing false:

{
  transforms: {
    jsx: false
  }
}
Configuring options

Transforms can be configured with custom options by providing an object, which will be merged with the default options:

{
  transforms: {
    jsx: {
      importSource: 'react'
    }
  }
}

Usage

This package can be used as @seamly/babel-preset following the Babel documentation on Presets.

Within babel.config.js / .babelrc.js

module.exports = {
  ...
  presets: [
    '@seamly/babel-preset',
    ['@seamly/babel-preset', {
      // options
    }]
  ]
  ...
}

Within webpack.config.js

  {
    loader: 'babel-loader',
    options: {
      presets: [
        '@seamly/babel-preset'
      ]
    }
  }

Keywords

FAQs

Package last updated on 05 Sep 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