1.0.1 • Published 2 years ago

@fxone/babel-preset v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Bebel preset

This is a preset for babel with TypeScript support

Usage

Installation with yarn:

$ yarn add @fxone/babel-preset -D

Add some scripts to your package.json:

{
  // ...
  "scripts": {
    "build": "babel src --extensions \".es6,.js,.es,.jsx,.mjs,.ts,.tsx\" --ignore *.spec.js --out-dir dist --copy-files --source-maps --verbose"
  }
}

Create a babel.config.js in your project directory, and set it up like so:

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