ToolJet/frontend/babel.config.js

25 lines
611 B
JavaScript
Raw Normal View History

const plugins = [
[
'console-source',
{
segments: 1, // NOT REQUIRED
// 0 = full file path (Default)
// 1 = file name ONLY
// 2 = file name and last segment
splitSegment: '/', // How to split the path - NOT REQUIRED
// Default is / for Linux and OSX
// Windows users can use "\\" here if needed
},
2022-02-23 04:18:05 +00:00
],
['@babel/transform-runtime'],
];
if (process.env.NODE_ENV === 'developement') {
plugins.push(['istanbul', { include: ['src/**/*.js', 'src/**/*.jsx'] }]);
}
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins,
2022-02-23 04:18:05 +00:00
};