| 1234567891011121314151617181920 |
- const { getConfig } = require('@airbnb/config-babel');
- const config = getConfig({
- library: true,
- react: true,
- next: true,
- esm: process.env.BABEL_OUTPUT === 'esm',
- node: process.env.NODE_ENV === 'test',
- typescript: true,
- env: {
- targets: { esmodules: true },
- },
- });
- config.plugins = [
- ['babel-plugin-transform-dev', { evaluate: false }],
- ['babel-plugin-typescript-to-proptypes', { loose: true }],
- ['@babel/plugin-proposal-class-properties', { loose: true }],
- ];
- module.exports = config;
|