You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/babel.config.js

37 lines
674 B

module.exports = {
plugins: ['lodash', 'angularjs-annotate'],
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',
},
],
],
},
],
};