fix: Client development build performance (#31390)

## Description
Dev mode performance:
- Disabled background tape checks for dev builds briefly.
- Configured caching for dev mode
- Added TS exclude paths

Timings: 
before:  build ~ 120 sec, recompile ~ 115 sec
after: build ~ 16 sec, recompile ~ 8 sec
This commit is contained in:
Valera Melnikov 2024-03-04 10:52:06 +03:00 committed by GitHub
parent 8db4cd3872
commit a33362bd9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 5 deletions

View File

@ -17,6 +17,9 @@ module.exports = {
babel: { babel: {
plugins: ["babel-plugin-lodash"], plugins: ["babel-plugin-lodash"],
}, },
eslint: {
enable: false,
},
webpack: { webpack: {
configure: { configure: {
resolve: { resolve: {

View File

@ -7,11 +7,18 @@ module.exports = merge(common, {
client: { client: {
overlay: { overlay: {
warnings: false, warnings: false,
errors: false errors: false,
} },
} },
}, },
optimization: { optimization: {
minimize: false, minimize: false,
}, },
cache: {
type: "filesystem",
memoryCacheUnaffected: true,
},
experiments: {
cacheUnaffected: true,
},
}); });

View File

@ -17,7 +17,7 @@
], ],
"scripts": { "scripts": {
"analyze": "yarn cra-bundle-analyzer", "analyze": "yarn cra-bundle-analyzer",
"start": "BROWSER=none EXTEND_ESLINT=true REACT_APP_ENVIRONMENT=DEVELOPMENT REACT_APP_CLIENT_LOG_LEVEL=debug HOST=dev.appsmith.com craco --max_old_space_size=7168 start", "start": "BROWSER=none REACT_APP_ENVIRONMENT=DEVELOPMENT REACT_APP_CLIENT_LOG_LEVEL=debug HOST=dev.appsmith.com craco --max_old_space_size=4096 start",
"build": "./build.sh", "build": "./build.sh",
"build-airgap": "node download-assets.js && ./build.sh", "build-airgap": "node download-assets.js && ./build.sh",
"build-local": "craco --max-old-space-size=4096 build --config craco.build.config.js", "build-local": "craco --max-old-space-size=4096 build --config craco.build.config.js",

View File

@ -35,5 +35,5 @@
"importsNotUsedAsValues": "error" "importsNotUsedAsValues": "error"
}, },
"include": ["./src/**/*", "./packages"], "include": ["./src/**/*", "./packages"],
"exclude": ["./packages/rts"] "exclude": ["./packages/rts", "**/node_modules", "**/.*/"]
} }