Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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(
{},