Skip to content

Commit eae5960

Browse files
committed
feat: add MF Vite Solid example
1 parent c6fd6cb commit eae5960

22 files changed

+4108
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Solid host and remote
2+
3+
## Getting started
4+
5+
From this directory execute:
6+
7+
- pnpm install:deps
8+
- pnpm serve
9+
10+
Open your browser at http://localhost:4173/ to see the amazing result
11+
12+
![screenshot](docs/screenshot.png)
79.6 KB
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
.__mf__temp
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<meta name="theme-color" content="#000000" />
7+
<link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
8+
<title>Host</title>
9+
</head>
10+
<body>
11+
<noscript>You need to enable JavaScript to run this app.</noscript>
12+
<div id="root"></div>
13+
14+
<script src="/src/index.tsx" type="module"></script>
15+
</body>
16+
</html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "module-federation-vite-solid-host",
3+
"version": "0.0.0",
4+
"description": "",
5+
"scripts": {
6+
"start": "vite",
7+
"dev": "vite --port 4173",
8+
"build": "vite build",
9+
"preview": "vite preview --port 4173"
10+
},
11+
"license": "MIT",
12+
"devDependencies": {
13+
"solid-devtools": "^0.29.2",
14+
"typescript": "^5.3.3",
15+
"vite": "^5.0.11",
16+
"vite-plugin-solid": "^2.8.2"
17+
},
18+
"dependencies": {
19+
"@module-federation/vite": "^1.1.1",
20+
"solid-js": "^1.8.11"
21+
}
22+
}

0 commit comments

Comments
 (0)