@centreon/js-config 23.10.65 → 24.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,10 +13,11 @@ const {
13
13
  const getBaseConfiguration = ({
14
14
  moduleName,
15
15
  moduleFederationConfig,
16
- jscTransformConfiguration
16
+ jscTransformConfiguration,
17
+ enableCoverage
17
18
  }) => ({
18
19
  cache,
19
- module: getModuleConfiguration(jscTransformConfiguration),
20
+ module: getModuleConfiguration(jscTransformConfiguration, enableCoverage),
20
21
  optimization,
21
22
  output: {
22
23
  ...output,
@@ -33,19 +34,18 @@ const getBaseConfiguration = ({
33
34
  shared: [
34
35
  {
35
36
  '@centreon/ui-context': {
36
- requiredVersion: '22.10.0',
37
+ requiredVersion: '24.x',
37
38
  singleton: true
38
39
  }
39
40
  },
40
41
  {
41
42
  jotai: {
42
- requiredVersion: '1.x',
43
+ requiredVersion: '2.x',
43
44
  singleton: true
44
45
  }
45
46
  },
46
47
  {
47
48
  'jotai-suspense': {
48
- requiredVersion: '0.1.x',
49
49
  singleton: true
50
50
  }
51
51
  },
@@ -63,7 +63,7 @@ const getBaseConfiguration = ({
63
63
  },
64
64
  {
65
65
  'react-i18next': {
66
- requiredVersion: '11.x',
66
+ requiredVersion: '14.x',
67
67
  singleton: true
68
68
  }
69
69
  },
@@ -79,10 +79,10 @@ const getBaseConfiguration = ({
79
79
  ].filter(Boolean),
80
80
  resolve: {
81
81
  alias: {
82
- react: path.resolve('./node_modules/react'),
83
82
  '@centreon/ui/fonts': path.resolve(
84
83
  './node_modules/@centreon/ui/public/fonts'
85
- )
84
+ ),
85
+ react: path.resolve('./node_modules/react')
86
86
  },
87
87
  extensions: ['.js', '.jsx', '.ts', '.tsx']
88
88
  }