mirror of https://github.com/buster-so/buster.git
fix build process
This commit is contained in:
parent
8356a58356
commit
fdcbe81706
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
1802
pnpm-lock.yaml
1802
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue