fix build process

This commit is contained in:
Nate Kelley 2025-09-01 23:22:46 -06:00
parent 8356a58356
commit fdcbe81706
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 894 additions and 916 deletions

View File

@ -148,7 +148,7 @@
"platejs": "catalog:",
"pluralize": "^8.0.0",
"posthog-js": "^1.261.0",
"react": "link:@platejs/ai/react",
"react": "^19.1.1",
"react-colorful": "^5.6.1",
"react-day-picker": "^8.10.1",
"react-dnd": "^16.0.1",

View File

@ -32,7 +32,11 @@ const config = defineConfig(({ command, mode }) => {
// Exclude test and stories files from build
external: (id) => {
// Exclude .test and .stories files
return /\.(test|stories)\.(js|ts|jsx|tsx)$/.test(id);
if (/\.(test|stories)\.(js|ts|jsx|tsx)$/.test(id)) {
return true;
}
// Don't externalize React and React DOM - let them be bundled
return false;
},
output: {
// Force lodash and lodash-es into a dedicated vendor chunk

File diff suppressed because it is too large Load Diff