portainer/babel.config.js

37 lines
693 B
JavaScript
Raw Normal View History

module.exports = {
plugins: ['lodash', 'angularjs-annotate', 'i18next-extract'],
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: '3',
targets: { node: 'current' },
modules: 'auto',
},
],
],
overrides: [
{
test: ['app/**/*.ts', 'app/**/*.tsx'],
presets: [
'@babel/preset-typescript',
[
'@babel/preset-react',
{
runtime: 'automatic',
},
],
[
'@babel/preset-env',
{
modules: 'auto',
useBuiltIns: 'usage',
corejs: '3',
},
],
],
},
],
};