Skip to content

Commit

Permalink
Revert "Merge pull request #2497 from LiteFarmOrg/fix-vite-build-memo…
Browse files Browse the repository at this point in the history
…ry-issue"

This reverts commit c60f4cb, reversing
changes made to 39a09d8.
  • Loading branch information
kathyavini committed Mar 21, 2023
1 parent a37cffd commit 9f030f1
Show file tree
Hide file tree
Showing 4 changed files with 1,341 additions and 1,797 deletions.
1 change: 1 addition & 0 deletions packages/webapp/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node-linker=hoisted
16 changes: 9 additions & 7 deletions packages/webapp/.storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ export const decorators = [
{ useSuspense: false },
);
return (
<Provider store={store}>
<ThemeProvider theme={theme}>
<GlobalScss />
<CssBaseline />
<Story />
</ThemeProvider>
</Provider>
<Suspense fallback={<p>Loading...</p>}>
<Provider store={store}>
<ThemeProvider theme={theme}>
<GlobalScss />
<CssBaseline />
<Story />
</ThemeProvider>
</Provider>
</Suspense>
);
},
];
23 changes: 9 additions & 14 deletions packages/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "CYPRESS_COVERAGE=TRUE vite --host",
"build": "tsc && vite build",
"build": "NODE_OPTIONS=--max_old_space_size=32768 tsc && vite build",
"preview": "vite preview",
"lint": "eslint src",
"i18n": "npx i18next 'src/**/*.{js,jsx,ts,tsx}' -c 'src/locales/i18next-parser.config.js'",
Expand Down Expand Up @@ -78,22 +78,17 @@
"@emotion/babel-plugin": "^11.10.5",
"@mdx-js/react": "^1.6.22",
"@mdx-js/rollup": "^2.3.0",
"@storybook/addon-a11y": "^7.0.0-rc.4",
"@storybook/addon-actions": "^7.0.0-rc.4",
"@storybook/addon-docs": "7.0.0-rc.4",
"@storybook/addon-essentials": "^7.0.0-rc.4",
"@storybook/addon-interactions": "^7.0.0-rc.4",
"@storybook/addon-links": "^7.0.0-rc.4",
"@storybook/addon-mdx-gfm": "^7.0.0-rc.4",
"@storybook/addon-viewport": "7.0.0-rc.4",
"@storybook/react": "^7.0.0-rc.4",
"@storybook/react-vite": "^7.0.0-rc.4",
"@storybook/addon-a11y": "^7.0.0-beta.45",
"@storybook/addon-actions": "^7.0.0-beta.45",
"@storybook/addon-essentials": "^7.0.0-beta.45",
"@storybook/addon-interactions": "^7.0.0-beta.45",
"@storybook/addon-links": "^7.0.0-beta.45",
"@storybook/react": "^7.0.0-beta.45",
"@storybook/react-vite": "^7.0.0-beta.45",
"@storybook/testing-library": "^0.0.14-next.1",
"@types/d3": "^7.4.0",
"@types/prop-types": "^15.7.5",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/react-redux": "^7.1.25",
"@typescript-eslint/parser": "^5.45.0",
"@vitejs/plugin-react": "^3.1.0",
"babel-loader": "^8.3.0",
Expand All @@ -113,7 +108,7 @@
"mailparser": "^3.5.0",
"nodemailer": "^6.8.0",
"sass": "^1.56.1",
"storybook": "^7.0.0-rc.4",
"storybook": "^7.0.0-beta.45",
"typescript": "^4.9.5",
"vite": "^4.1.1",
"vite-plugin-istanbul": "^4.0.0",
Expand Down
Loading

0 comments on commit 9f030f1

Please sign in to comment.