Skip to content

LaunchPadLab/babel-preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@launchpadlab/babel-preset

Shareable babel presets to use across projects.

Usage:

// .babelrc:

// To use a specific config
{
  presets: ['@launchpadlab/babel-preset/es6'],
}

// To use the default config (react)
{
  presets: ['@launchpadlab/babel-preset'],
}

This preset uses @babel/preset-env under the hood. To pass options down to that preset, you can pass an env option at the top level:

{
  // Will skip module transformations
  presets: [['@launchpadlab/babel-preset', { env: { modules: false } }]],
}

Migration Guides