mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
reduce storybook memory usage and increase build memory (#6798)
reduce memory usage and increase build memory Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
@@ -17,6 +17,9 @@ const config: StorybookConfig = {
|
||||
addons: ['@storybook/addon-themes', '@storybook/addon-a11y'],
|
||||
viteFinal: async (config) =>
|
||||
mergeConfig(config, {
|
||||
build: {
|
||||
reportCompressedSize: false,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@modrinth/api-client': path.resolve(storybookDirectory, '../../api-client/src/index.ts'),
|
||||
|
||||
@@ -43,7 +43,7 @@ import {
|
||||
|
||||
// Load locale messages from the UI package's locales
|
||||
// @ts-ignore
|
||||
const localeModules = import.meta.glob('../src/locales/*/index.json', {
|
||||
const localeModules = import.meta.glob('../src/locales/en-US/index.json', {
|
||||
eager: true,
|
||||
}) as Record<string, { default: CrowdinMessages }>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user