Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions examples/turbo-rspack-mf/apps/host/src/react-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,14 @@ declare module '*.txt' {
const src: string;
export default src;
}

// Module Federation remotes
declare module 'turbo_home/RemoteEntry' {
const Home: React.ComponentType;
export default Home;
}

declare module 'turbo_settings/RemoteEntry' {
const Settings: React.ComponentType;
export default Settings;
}
45 changes: 38 additions & 7 deletions examples/turbo-rspack-mf/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,51 @@
"ui": "tui",
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**"],
"env": ["ZE_API", "ZE_API_GATE", "DEBUG"]
"dependsOn": [
"turbo_settings#build",
"turbo_home#build"
],
"inputs": [
"$TURBO_DEFAULT$",
".env*"
],
"outputs": [
".next/**",
"!.next/cache/**"
],
"env": [
"ZE_API",
"ZE_API_GATE",
"DEBUG"
]
},
"deploy": {
"dependsOn": [
"build"
],
"inputs": [
"$TURBO_DEFAULT$",
".env*"
],
"env": [
"ZE_API",
"ZE_API_GATE",
"DEBUG"
]
},
"lint": {
"dependsOn": ["^lint"]
"dependsOn": [
"^lint"
]
},
"check-types": {
"dependsOn": ["^check-types"]
"dependsOn": [
"^check-types"
]
},
"dev": {
"cache": false,
"persistent": true
}
}
}
}
Loading