npm.io
1.0.1 • Published 4 years ago

@fxone/babel-preset

Licence
MIT
Version
1.0.1
Deps
13
Size
2 kB
Vulns
0
Weekly
0

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'],
};