Skip to content

Commit

Permalink
build(manager-react-components): exclude ODS from bundle
Browse files Browse the repository at this point in the history
Signed-off-by: Anoop N <[email protected]>
  • Loading branch information
anooparveti authored and aboungnaseng-ovhcloud committed Oct 31, 2024
1 parent a3ef511 commit c8bf651
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/manager-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
"@ovhcloud/ods-theme-blue-jeans": "17.2.2",
"@tanstack/react-query": "^5.51.21",
"@tanstack/react-table": "^8.20.1",
"@types/lodash.isdate": "^4.0.9",
"@types/lodash.isequal": "^4.5.0",
"babel-preset-react-app": "^10.0.1",
"clsx": "^2.1.1",
"lodash.isdate": "^4.0.1",
Expand Down Expand Up @@ -76,6 +74,8 @@
"@storybook/web-components-vite": "8.0.4",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.0.0",
"@types/lodash.isdate": "^4.0.9",
"@types/lodash.isequal": "^4.5.0",
"@types/jest": "^29.5.5",
"@types/node": "20.4.9",
"@types/react": "18.2.45",
Expand Down
4 changes: 2 additions & 2 deletions packages/manager-react-components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"lib": ["dom", "es2020"],
"lib": ["dom", "es2021"],
"target": "ES2020",
"types": ["vite/client", "node", "jest"],
"module": "ESNext",
"outDir": "dist",
"allowJs": false,
"allowJs": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand Down
4 changes: 4 additions & 0 deletions packages/manager-react-components/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export default defineConfig({
'react-router-dom',
'react-i18next',
'zustand',
"@ovhcloud/ods-common-core",
"@ovhcloud/ods-common-theming",
"@ovhcloud/ods-components",
"@ovhcloud/ods-theme-blue-jeans"
],
output: {
globals: {
Expand Down
1 change: 1 addition & 0 deletions packages/manager/core/vite-config/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const getBaseConfig = (config) => {
'@vitest',
'typescript',
'date-fns',
'@ovh-ux/manager-react-components',
],
},
define: {
Expand Down

0 comments on commit c8bf651

Please sign in to comment.