0.1.0 • Published 3 years ago

@dewebsitejongens/babel-preset v0.1.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

@dewebsitejongens/babel-preset

Installation

Install the module

yarn add browserslist @babel/core @babel/runtime @dewebsitejongens/babel-preset --dev

Usage

to use the babel preset put the code below in the .babelrc file. Keep in mind replace the x.xx.x with the installed @babel/runtime version.

{
  "presets": [
    [
      "@dewebsitejongens/babel-preset",
      {
        "runtimeVersion": "x.xx.x"
      }
    ]
  ]
}

Options

Here are the options you can set in your .babelrc:

  • modules: {boolean, default 'auto'}: Not recommended to change, check babel-preset-env modules.
  • runtimeVersion: {string}: The @babel/runtime installed version.
  • transformRuntime {boolean, default: true}: A plugin that enables the re-use of Babel's injected helper code to save on codesize.
  • looseClasses {boolean, default: true}: Enable "loose" transformations for any plugins in this preset that allow them.
  • removePropTypes {boolean, default: false}: Remove prop-types from bundled file.