WordPress.org

@wordpress/babel-preset-default Edit

Default Babel preset for WordPress development.

Installation Installation

Install the module

npm install @wordpress/babel-preset-default --save-dev

Usage Usage

{
  "presets": [ "@wordpress/default" ]
}

Top ↑

Via CLI Via CLI

babel script.js --presets @wordpress/default

Top ↑

Via Node API Via Node API

require( '@babel/core' ).transform( 'code', {
  presets: [ '@wordpress/default' ]
} );

Code is Poetry.

Skip to toolbar