1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

feat(app): introduce react configurations [EE-1809] (#5953)

This commit is contained in:
Chaim Lev-Ari 2021-11-03 12:41:59 +02:00 committed by GitHub
parent b285219a58
commit 85a6a80722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 8974 additions and 599 deletions

36
babel.config.js Normal file
View file

@ -0,0 +1,36 @@
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',
},
],
],
},
],
};