Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const addModuleExports = require('babel-plugin-add-module-exports');
const fastAsync = require('fast-async');
const jsx = require('babel-plugin-transform-react-jsx');
const transformRuntime = require('babel-plugin-transform-runtime').default;
const env = require('babel-preset-env').default;
module.exports = preset;
function preset() {
const plugins = [
addModuleExports,
[jsx, {pragma: 'h'}],
[fastAsync, {spec: true}],
[transformRuntime, {polyfill: false, regenerator: false}]
];
return {
env: {
development: {
plugins