1.0.1 • Published 8 years ago

mako-babel v1.0.1

Weekly downloads
21
License
MIT
Repository
github
Last release
8 years ago

mako-babel

A plugin that transpiles ES6 code using babel.

npm version coverage npm dependencies npm dev dependencies

Purpose

  • transpiles file.contents using babel
  • can output inline source-maps which mako-js respects during packing
  • respects .babelrc files for configuration (assumes node_modules are precompiled)

API

babel(options)

Available options include:

  • extensions: a list of extensions to compile. (default: js)
  • only: a whitelist of files (globs, functions and regex allowed) to compile (takes precedence over ignore)
  • ignore: a blacklist of files to compile
  • sourceMaps: turn on to enable source maps
  • plugins: list of plugins to include when running babel
  • presets: list of presets to include when running babel

This plugin does not expose a lot of configuration, as using a .babelrc file is encouraged.

NOTE: by default, this module ignores anything in node_modules by default. Any modules should be precompiled before being published to NPM. If there is enough demand for it, I will consider adding configuration for other workflows. (although I will point out it is discouraged by the babel team as far as I can tell)

1.0.1

8 years ago

1.0.0

9 years ago

0.14.2

9 years ago

0.14.1

9 years ago

0.14.0

9 years ago

0.13.5

9 years ago

0.13.4

9 years ago

0.13.3

9 years ago

0.13.2

9 years ago

0.13.1

9 years ago

0.13.0

9 years ago

0.12.1

9 years ago

0.12.0

9 years ago

0.11.0

9 years ago

0.10.2

9 years ago

0.10.1

9 years ago

0.10.0

9 years ago

0.9.0

9 years ago

0.8.0

9 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.0.1

10 years ago