Skip to content

Commit aa6c729

Browse files
feat(chore): merge commit
2 parents fdef8ce + 493eef7 commit aa6c729

File tree

372 files changed

+30918
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+30918
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
node_modules
2+
dist
3+
out
4+
.next
25

36
# env vars
47
.env*

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ Once you've forked this repository, you can clone it and follow the instructions
2828
A monorepo using pnpm workspace, Module Federation, React, and Vite as the bundler
2929
* __[`react-vite-nx`](./examples/react-vite-nx)__
3030
A monorepo using Nx, React, and Vite as the bundler
31-
* __[`react-vite-ts`](./examples/react-vite-ts)__
31+
* __[`turbo-rspack-mf`](./examples/turbo-rspack-mf/)__
32+
A monorepo using Turborepo, React, and Rspack as the bundler
33+
*`` __[`react-vite-ts`](./examples/react-vite-ts)__
3234
A React application built in TypeScript, using Vite as the bundler.
3335
* __[`rspress`](./examples/rspress)__
3436
A Rspress application.
37+
* __[`rspack-project`](./examples/rspack-project)__
38+
A simple Rspack application using React.
3539

3640
## Deploying an example project
3741
After cloning your fork of this repository locally, follow these steps:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@mf-types
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Airbnb Example
2+
3+
This is an Airbnb clone sample based on [another example](https://github.com/AntonioErdeljac/next13-airbnb-clone) made by [Antonio Erdeljac](https://github.com/AntonioErdeljac). ([video](https://www.youtube.com/watch?v=c_-b_isI4vg&t=9493s))
4+
5+
The example was ported from Next.js to vanilla React using React Router for the purposes of showcasing the use of federated components with Zephyr.
6+
7+
To run:
8+
9+
```bash
10+
pnpm i
11+
pnpm dev
12+
```
13+
14+
To build
15+
16+
```bash
17+
# You need to first build the remotes in order for the host to attach them to the application
18+
pnpm build-remotes
19+
pnpm build-host
20+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"plugins": [],
3+
"presets": [["@babel/preset-react", { "runtime": "automatic" }], "@babel/preset-typescript"]
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "airbnb-categories",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "webpack serve",
7+
"build": "rimraf dist && webpack --mode production",
8+
"start": "http-server dist -p 3011"
9+
}
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};
25.3 KB
Binary file not shown.
7.93 KB
Loading
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<html>
2+
<head>
3+
<title>Host App</title>
4+
</head>
5+
<body>
6+
<div id="root"></div>
7+
</body>
8+
</html>

0 commit comments

Comments
 (0)