const name = process.env.REACT_APP_ID
const { version: senhubVersion } = require('./package.json')

module.exports = {
  name,
  filename: 'index.js',
  shared: {
    react: { singleton: true, requiredVersion: '^17.0.2' },
    'react-dom': { singleton: true, requiredVersion: '^17.0.2' },
    'react-router-dom': { singleton: true, requiredVersion: '^5.3.0' },
    '@reduxjs/toolkit': { singleton: true, requiredVersion: '^1.6.2' },
    'react-redux': { singleton: true, requiredVersion: '^7.2.5' },
    antd: { singleton: true, requiredVersion: '^4.20.2' },
    '@senhub/context': {
      import: 'os/store/context',
      singleton: true,
      requiredVersion: senhubVersion,
    },
    '@senhub/providers': {
      import: 'os/providers',
      singleton: true,
      requiredVersion: senhubVersion,
    },
  },
  exposes: {
    './bootstrap': 'app/bootstrap.app',
  },
}
