0.0.6 • Published 5 years ago

babel-plugin-teakit v0.0.6

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

babel-plugin-teakit

A simple transform to cherry-pick teakit modules so you don’t have to.

Example

Transforms

import _ from 'teakit'

const addOne = add(1)
_.map([1, 2, 3], addOne)

To

import _map from 'teakit/map'

const addOne = _add(1)
_map([1, 2, 3], addOne)

Usage

.babelrc

{
  "plugins": ["teakit"],
  "presets": [["@babel/env", { "targets": { "node": 6 } }]]
}

webpack.config.js

'module': {
  'loaders': [{
    'loader': 'babel-loader',
    'test': /\.js$/,
    'exclude': /node_modules/,
    'query': {
      'plugins': ['teakit'],
      'presets': [['@babel/env', { 'targets': { 'node': 6 } }]]
    }
  }]
}

License

base on babel-plugin-lodash project

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago