How to use babel-preset-babili - 1 common examples

To help you get started, we’ve selected a few babel-preset-babili 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 salesforce / lwc / packages / raptor-compiler / src / constants.js View on Github external
import babili from 'babel-preset-babili';
import raptorCompatTransformPlugin from "babel-plugin-transform-raptor-compat";
import { BABEL_PLUGINS_LATEST, BABEL_PLUGINS_COMPAT } from './babel-plugins';

export const MODES = {
    DEV: 'dev',
    PROD: 'prod',
    COMPAT: 'compat',
    PROD_COMPAT: 'prod_compat',
    ALL : 'all'
};

const BABILI_CONFIG = babili();

export const BASE_BABEL_CONFIG = {
    babelrc: false,
    sourceMaps: true,
    parserOpts: { plugins: ['*'] },
    presets: [],
};

export const DEV_BABEL_CONFIG = Object.assign(
    {},
    { plugins: BABEL_PLUGINS_LATEST },
    BASE_BABEL_CONFIG
);

export const PROD_BABEL_CONFIG = Object.assign(
    {},

babel-preset-babili

Babel preset for all minify plugins.

MIT
Latest version published 7 years ago

Package Health Score

59 / 100
Full package analysis

Popular babel-preset-babili functions