Skip to content
#

babel-preset

Here are 162 public repositories matching this topic...

boopathi
boopathi commented Feb 20, 2017

Validate the entire tree of options passed to preset.

Maybe, each plugin can export a list of options that only babili preset understands and we can validate them only when using the preset and not when using the plugin separately.

module.exports = function plugin() {};
module.exports.options = PropTypes.object({
  n: PropTypes.number
});

Or, this can be implemented in bab

opensource
tunnckoCore
tunnckoCore commented Feb 9, 2018

Which will behave like that

let settings = await prettyConfig('rollup', { configFiles })

if (!settings) {
  settings = await prettyConfig('rolldown', { configFiles })
}
console.log(settings)

instead of above we can hide it to look like that

const settings = await prettyConfig(['rollup', 'rolldown'], { configFiles })

if (!settings) {
  console.log('no config file

Improve this page

Add a description, image, and links to the babel-preset topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the babel-preset topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.