PostMask Babel Compiler
Compiles functions in mask
templates to es5
Configurate
mask.cfg('postmask-babel', BabelOptions);
Default:
{"presets":["es2015"], plugins: [""external-helpers""]}
You should also include babelHelpers
to the app:
npm i -g babel-clibabel-external-helpers -t var > my-babel-helpers.js
Optimizer
Defines optimizers to compile functions, slots, and other scripts to es5. Can be used as standalone module, but also as a plugin for postmask
.
atma-loader-postmask
$ npm i atma -g$ atma plugin install atma-loader-postmast --save-dev
package.json
Runtime
Transform scripts at runtime. Use this only in some demos and in dev, not for production.
Usage
npm i babel-standalone --save-devnpm i postmask-babel --save-devnpm i maskjs --save
define Foo { function onRenderStart () { this.$.someWidget({ onUpdate (...args) { console.log('foo') } }); }}
(c) MIT License - Atma.js Project