2024-01-10 04:36:02 -06:00
|
|
|
const plugins = [];
|
|
|
|
|
|
|
|
const {
|
|
|
|
FLECKS_CORE_IS_PRODUCTION,
|
|
|
|
} = process.env;
|
|
|
|
|
|
|
|
if ('true' !== FLECKS_CORE_IS_PRODUCTION) {
|
|
|
|
plugins.push('react-refresh/babel');
|
|
|
|
}
|
|
|
|
|
2022-02-25 04:58:08 -06:00
|
|
|
module.exports = {
|
2022-02-28 00:00:39 -06:00
|
|
|
babel: {
|
2024-01-10 04:36:02 -06:00
|
|
|
plugins,
|
2022-02-28 00:00:39 -06:00
|
|
|
presets: [
|
|
|
|
'@babel/preset-react',
|
|
|
|
],
|
|
|
|
},
|
2024-01-13 04:46:41 -06:00
|
|
|
dependencies: ['@flecks/web'],
|
2022-03-20 20:53:05 -05:00
|
|
|
exts: ['.jsx'],
|
2022-02-25 04:58:08 -06:00
|
|
|
};
|