@platformatic/remix 2.50.0 → 2.51.0
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/index.js +12 -2
- package/package.json +7 -7
- package/schema.json +1 -1
package/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { ViteStackable } from '@platformatic/vite'
|
|
|
14
14
|
import { createRequestHandler } from '@remix-run/express'
|
|
15
15
|
import express from 'express'
|
|
16
16
|
import inject from 'light-my-request'
|
|
17
|
+
import { existsSync } from 'node:fs'
|
|
17
18
|
import { readFile } from 'node:fs/promises'
|
|
18
19
|
import { dirname, resolve } from 'node:path'
|
|
19
20
|
import { pinoHttp } from 'pino-http'
|
|
@@ -150,8 +151,17 @@ export class RemixStackable extends ViteStackable {
|
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
async #startDevelopment (listen) {
|
|
153
|
-
const
|
|
154
|
-
|
|
154
|
+
const preloadViteEsmPath = resolve(this.#remix, './dist/vite/import-vite-esm-sync.js')
|
|
155
|
+
|
|
156
|
+
// Older versions
|
|
157
|
+
if (existsSync(preloadViteEsmPath)) {
|
|
158
|
+
const { preloadViteEsm } = await importFile(resolve(this.#remix, './dist/vite/import-vite-esm-sync.js'))
|
|
159
|
+
await preloadViteEsm()
|
|
160
|
+
} else {
|
|
161
|
+
const { preloadVite } = await importFile(resolve(this.#remix, './dist/vite/vite.js'))
|
|
162
|
+
await preloadVite()
|
|
163
|
+
}
|
|
164
|
+
|
|
155
165
|
await super.start({ listen })
|
|
156
166
|
|
|
157
167
|
/* c8 ignore next 3 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/remix",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.51.0",
|
|
4
4
|
"description": "Platformatic Remix Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"express": "^4.19.2",
|
|
21
21
|
"pino-http": "^10.2.0",
|
|
22
22
|
"semver": "^7.6.3",
|
|
23
|
-
"@platformatic/basic": "2.
|
|
24
|
-
"@platformatic/utils": "2.
|
|
25
|
-
"@platformatic/
|
|
26
|
-
"@platformatic/
|
|
23
|
+
"@platformatic/basic": "2.51.0",
|
|
24
|
+
"@platformatic/utils": "2.51.0",
|
|
25
|
+
"@platformatic/config": "2.51.0",
|
|
26
|
+
"@platformatic/vite": "2.51.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@remix-run/dev": "^2.11.2",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"typescript": "^5.5.4",
|
|
41
41
|
"vite": "^5.4.2",
|
|
42
42
|
"ws": "^8.18.0",
|
|
43
|
-
"@platformatic/composer": "2.
|
|
44
|
-
"@platformatic/service": "2.
|
|
43
|
+
"@platformatic/composer": "2.51.0",
|
|
44
|
+
"@platformatic/service": "2.51.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"test": "npm run lint && borp --concurrency=1 --no-timeout",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/remix/2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/remix/2.51.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Remix Stackable",
|
|
5
5
|
"type": "object",
|