@quilted/create 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @quilted/create
|
|
2
2
|
|
|
3
|
+
## 0.2.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f2000adb`](https://github.com/lemonmade/quilt/commit/f2000adbb0d4cfd57901b560e4d12e3690bee8d5) Thanks [@lemonmade](https://github.com/lemonmade)! - Simplify package and smaller app templates
|
|
8
|
+
|
|
9
|
+
## 0.2.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`da384bb0`](https://github.com/lemonmade/quilt/commit/da384bb0f15235eda60f372378b5d270bb14e6fa) Thanks [@lemonmade](https://github.com/lemonmade)! - Update tsx dependency
|
|
14
|
+
|
|
3
15
|
## 0.2.13
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import '@quilted/quilt/globals';
|
|
2
2
|
import {RequestRouter} from '@quilted/quilt/request-router';
|
|
3
|
+
import {renderToResponse} from '@quilted/quilt/server';
|
|
3
4
|
import {BrowserAssets} from 'quilt:module/assets';
|
|
4
5
|
|
|
6
|
+
import {App} from './App.tsx';
|
|
7
|
+
|
|
5
8
|
const router = new RequestRouter();
|
|
6
9
|
const assets = new BrowserAssets();
|
|
7
10
|
|
|
8
11
|
// For all GET requests, render our React application.
|
|
9
12
|
router.get(async (request) => {
|
|
10
|
-
const [{App}, {renderToResponse}] = await Promise.all([
|
|
11
|
-
import('./App.tsx'),
|
|
12
|
-
import('@quilted/quilt/server'),
|
|
13
|
-
]);
|
|
14
|
-
|
|
15
13
|
const response = await renderToResponse(<App />, {
|
|
16
14
|
request,
|
|
17
15
|
assets,
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import '@quilted/quilt/globals';
|
|
2
2
|
import {RequestRouter} from '@quilted/quilt/request-router';
|
|
3
|
+
import {renderToResponse} from '@quilted/quilt/server';
|
|
3
4
|
import {BrowserAssets} from 'quilt:module/assets';
|
|
4
5
|
|
|
6
|
+
import {App} from './App.tsx';
|
|
7
|
+
|
|
5
8
|
const router = new RequestRouter();
|
|
6
9
|
const assets = new BrowserAssets();
|
|
7
10
|
|
|
8
11
|
// For all GET requests, render our React application.
|
|
9
12
|
router.get(async (request) => {
|
|
10
|
-
const [{App}, {renderToResponse}] = await Promise.all([
|
|
11
|
-
import('./App.tsx'),
|
|
12
|
-
import('@quilted/quilt/server'),
|
|
13
|
-
]);
|
|
14
|
-
|
|
15
13
|
const response = await renderToResponse(<App />, {
|
|
16
14
|
request,
|
|
17
15
|
assets,
|