mb

malta-babel

babel plugin for malta

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

9mos ago

Contributors

1

Package

Dependencies

7

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme


npm version npm downloads npm downloads


This plugin can be used on: .ts and .js files

Options :

- config : the path relative to the execution folder of a config file

All official presets are already shipped in malta-babel, if in the config file you set up the usage of one or more plugins you need to add the dependency manually to Your project.

Sample usage:

malta app/source/index.js public/js -plugins=malta-babel[config:\"myconf.json\"]

or in the .json file :

"app/source/index.js" : "public/js -plugins=malta-babel[config:\"myconf.json\"]"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.js',
    'public/js',
    '-plugins=malta-babel[config:\"myconf.json\"]',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

where my config could be:

{
    "presets": [
        [
            "@babel/env",
            {
                "targets": {
                    "edge": "17",
                    "firefox": "60",
                    "chrome": "67",
                    "safari": "11.1"
                },
                "useBuiltIns": "usage"
            }
        ]
    ]
}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial