🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

babel-preset-divi-extension

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-divi-extension

Babel preset used by Create Divi Extension

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

babel-preset-divi-extension

This package includes the Babel preset used by Create Divi Extension.
Please refer to its documentation:

  • Getting Started – How to create a new app.
  • User Guide – How to develop apps bootstrapped with Create Divi Extension.

Usage in Create Divi Extension Projects

The easiest way to use this configuration is with Create Divi Extension, which includes it by default. You don’t need to install it separately in Create Divi Extension projects.

Usage Outside of Create Divi Extension

If you want to use this Babel preset in a project not built with Create Divi Extension, you can install it with following steps.

First, install Babel.

Then install babel-preset-divi-extension.

npm install babel-preset-divi-extension --save-dev

Then create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["divi-extension"]
}

This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled.

FAQs

Package last updated on 19 Apr 2018

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