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:
parent
b285219a58
commit
85a6a80722
50 changed files with 8974 additions and 599 deletions
36
babel.config.js
Normal file
36
babel.config.js
Normal 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',
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue