@centreon/js-config 26.7.6 → 26.7.8

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@centreon/js-config",
3
3
  "description": "Centreon Frontend shared build configuration",
4
- "version": "26.7.6",
4
+ "version": "26.7.8",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon.git"
@@ -42,13 +42,11 @@ const getBaseConfiguration = ({
42
42
  library: moduleName,
43
43
  uniqueName: moduleName
44
44
  },
45
- experiments: {
46
- css: true
47
- },
48
45
  plugins: [
49
46
  moduleName &&
50
47
  new rspack.container.ModuleFederationPlugin({
51
48
  filename: 'remoteEntry.[chunkhash:8].js',
49
+ injectTreeShakingUsedExports: false,
52
50
  library: { name: moduleName, type: 'umd' },
53
51
  name: moduleName,
54
52
  shared: [
@@ -2,6 +2,7 @@ module.exports = {
2
2
  getDevConfiguration: () => ({
3
3
  cache: true,
4
4
  devtool: "eval-cheap-module-source-map",
5
+ lazyCompilation: false,
5
6
  optimization: {
6
7
  splitChunks: false,
7
8
  },
@@ -1,6 +1,6 @@
1
1
  const os = require('os');
2
2
 
3
- const ReactRefreshPlugin = require('@rspack/plugin-react-refresh');
3
+ const { ReactRefreshRspackPlugin } = require('@rspack/plugin-react-refresh');
4
4
 
5
5
  const devServerPort = 9090;
6
6
 
@@ -19,7 +19,9 @@ const publicPath = `http://${devServerAddress}:${devServerPort}/static/`;
19
19
 
20
20
  const isDevelopmentMode = process.env.NODE_ENV !== 'production';
21
21
 
22
- const devServerPlugins = isDevelopmentMode ? [new ReactRefreshPlugin()] : [];
22
+ const devServerPlugins = isDevelopmentMode
23
+ ? [new ReactRefreshRspackPlugin()]
24
+ : [];
23
25
 
24
26
  module.exports = {
25
27
  devServer: {