mako-babel v1.0.1
mako-babel
A plugin that transpiles ES6 code using babel.
Purpose
- transpiles
file.contentsusing babel - can output inline source-maps which mako-js respects during packing
- respects
.babelrcfiles for configuration (assumesnode_modulesare 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 overignore)ignore: a blacklist of files to compilesourceMaps: turn on to enable source mapsplugins: list of plugins to include when running babelpresets: 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)
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago