Nutty Professor Movie

    @jvdx/babel-preset

    1.6.0 • Public • Published

    @jvdx/babel-preset

    jvdx's babel preset. It includes the following presets and plugins:

    Plugins

    • proposal-class-properties
    • proposal-nullish-coalescing-operator
    • proposal-optional-chaining
    • syntax-import-meta
    • transform-flow-strip-types
    • transform-regenerator
    • macros
    • transform-async-to-promises

    Presets

    • env
    • react
    • typescript

    Installation

    (1) Install this preset as well as its peer dependencies:

    # Using npm
    $ npm i -D @babel/core @jvdx/babel-preset
    
    # Using yarn
    $ yarn add -D @babel/core @jvdx/babel-preset

    (2) Configure babel:

    // babel.config.js
    {
    	"babel": {
    		"presets": ["@jvdx/babel-preset"]
    	}
    }

    Configuration

    To configure the included presets/plugins, do not add them to presets or plugins in your custom babel configuration. Instead, configure them on the @jvdx/babel-preset preset, like so:

    {
    	"babel": {
    		"presets": [
    			[
    				"@jvdx/babel-preset",
    				{
    					"preset-react": {},
    					"preset-typescript": {},
    					"class-properties": {},
    					"private-methods": {},
    				}
    			]
    		],
    	}
    }

    Notice: To learn more about the available options for each config, visit their documentation site.

    Install

    npm i @jvdx/babel-preset

    DownloadsWeekly Downloads

    60

    Version

    1.6.0

    License

    MIT

    Unpacked Size

    11.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • joelvoss