Shareable Babel preset for Gandi.
Includes ES2022+, React, Flow, Typescript as well as common transforms and polyfills.
$ npm install --save-dev @gandi/babel-preset-gandiAdd the following line to your .babelrc file:
{
"presets": ["@gandi/gandi"]
}Pass options to babel-preset-env
{
"presets": [["@gandi/gandi", { "modules": "false" }]]
}See the full list of available options.
Add the following line to your .babelrc file:
{
"presets": ["@gandi/babel-preset-gandi/typescript"]
}Pass options to babel-preset-env
{
"presets": [["@gandi/babel-preset-gandi/typescript", { "modules": "false" }]]
}See the full list of available options.
You should have a .browserslistrc file at the root of your project.
We use the defaults query.
Or programmatically:
// Client
{
targets: { browsers: 'defaults' },
presets: [['@gandi/gandi', { modules: false }]],
babelrc: false,
}
// Server
{
targets: { node: 24 },
presets: [['@gandi/gandi', { modules: false }]],
babelrc: false,
}All notable changes to this project will be documented in this section.
This project adheres to Semantic Versioning and Keep A Changelog.
Please open an issue. If it's clear and well labelized, it's quicker to fix!
Else you can start contributing.
Be nice. Thanks.
(People who have been involved in @gandi/babel-preset-gandi)
- Julien Muetton @themouette
- Yann Brelière @yanndinendal
- Alexis Mineaud @cr0cK
- Arthur Gautier @baloo
- Timothée Pillard @ziir
ISC.