ToolJet/frontend/babel.config.js
2022-02-23 09:48:05 +05:30

19 lines
545 B
JavaScript

module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
['@babel/plugin-proposal-class-properties'],
[
'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
},
],
['@babel/transform-runtime'],
],
};