How to use the babel-helpers.list.filter function in babel-helpers

To help you get started, we’ve selected a few babel-helpers 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 TehShrike / abstract-state-router / rollup.config.js View on Github external
}),
		babel({
			babelrc: false,
			presets: [
				[
					'es2015',
					{
						modules: false,
					},
				],
			],
			plugins: [
				'external-helpers',
			],
			// fixing temporary rollup's regression, remove when rollup/rollup#1595 gets solved
			externalHelpersWhitelist: babelHelpersList.filter(helperName => helperName !== 'asyncGenerator'),
		}),
		visualizer(),
	],
	external: [
		'combine-arrays',
		'eventemitter3',
		'hash-brown-router',
		'iso-next-tick',
		'page-path-builder',
		'path-to-regexp-with-reversible-keys',
		'then-denodeify',
	],
}
github elastic / eui / packages / react-datepicker / rollup.config.js View on Github external
import { list as babelHelpersList } from 'babel-helpers';
import pkg from './package.json';

const config = {
  output: {
    format: process.env.BABEL_ENV
  },
  plugins: [
    nodeResolve({
      jsnext: true,
      extensions: ['.js', '.jsx']
    }),
    babel({
      exclude: 'node_modules/**',
      plugins: ['external-helpers'],
      externalHelpersWhitelist: babelHelpersList.filter(
        helperName => helperName !== 'asyncGenerator'
      )
    }),
    commonjs({
      include: 'node_modules/**',
    })
  ],
  external: [
    'react',
    'react-dom',
    'classnames',
    'prop-types',
    'moment'
  ]
};

babel-helpers

Collection of helper functions used by Babel transforms.

MIT
Latest version published 8 years ago

Package Health Score

82 / 100
Full package analysis

Similar packages