How to use the @putout/engine-loader.loadPlugins function in @putout/engine-loader

To help you get started, we’ve selected a few @putout/engine-loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coderaiser / putout / packages / putout / lib / putout.js View on Github external
const defaultOpts = (opts = {}) => {
    const {
        parser = 'babel',
        fix = true,
        fixCount = 2,
        loadPlugins = loader.loadPlugins,
        runPlugins = runner.runPlugins,
    } = opts;
    
    return {
        ...opts,
        parser,
        fix,
        fixCount,
        loadPlugins,
        runPlugins,
    };
};

@putout/engine-loader

load plugins and prepare them to run

MIT
Latest version published 19 days ago

Package Health Score

73 / 100
Full package analysis

Popular @putout/engine-loader functions