jeasx 1.8.6 → 2.0.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/esbuild.config.js +4 -8
- package/package.json +5 -5
- package/serverless.js +1 -1
- package/serverless.ts +1 -1
package/esbuild.config.js
CHANGED
|
@@ -17,14 +17,12 @@ const BROWSER_PUBLIC_ENV = Object.keys(process.env)
|
|
|
17
17
|
|
|
18
18
|
const ESBUILD_BROWSER_TARGET = process.env.ESBUILD_BROWSER_TARGET
|
|
19
19
|
? process.env.ESBUILD_BROWSER_TARGET.replace(/\s/g, "").split(",")
|
|
20
|
-
: ["
|
|
20
|
+
: ["chrome130", "edge130", "firefox130", "safari18"];
|
|
21
21
|
|
|
22
22
|
/** @type esbuild.BuildOptions[] */
|
|
23
23
|
const buildOptions = [
|
|
24
24
|
{
|
|
25
|
-
entryPoints: ["js", "ts", "jsx", "tsx"].map(
|
|
26
|
-
(ext) => `src/routes/**/[*].${ext}`
|
|
27
|
-
),
|
|
25
|
+
entryPoints: ["js", "ts", "jsx", "tsx"].map((ext) => `src/**/[*].${ext}`),
|
|
28
26
|
define: {
|
|
29
27
|
"process.env.BUILD_TIME": BUILD_TIME,
|
|
30
28
|
},
|
|
@@ -37,14 +35,13 @@ const buildOptions = [
|
|
|
37
35
|
bundle: true,
|
|
38
36
|
sourcemap: process.sourceMapsEnabled,
|
|
39
37
|
sourcesContent: false,
|
|
40
|
-
|
|
41
|
-
outdir: "dist",
|
|
38
|
+
outdir: "dist/server",
|
|
42
39
|
platform: "neutral",
|
|
43
40
|
packages: "external",
|
|
44
41
|
},
|
|
45
42
|
{
|
|
46
43
|
entryPoints: ["js", "ts", "jsx", "tsx", "css"].map(
|
|
47
|
-
(ext) => `src
|
|
44
|
+
(ext) => `src/**/index.${ext}`
|
|
48
45
|
),
|
|
49
46
|
define: BROWSER_PUBLIC_ENV,
|
|
50
47
|
minify: process.env.NODE_ENV !== "development",
|
|
@@ -56,7 +53,6 @@ const buildOptions = [
|
|
|
56
53
|
bundle: true,
|
|
57
54
|
sourcemap: process.sourceMapsEnabled,
|
|
58
55
|
sourcesContent: true,
|
|
59
|
-
outbase: "src/browser",
|
|
60
56
|
outdir: "dist/browser",
|
|
61
57
|
platform: "browser",
|
|
62
58
|
format: "esm",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jeasx",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Jeasx - the ease of JSX with the power of SSR",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jsx",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@fastify/formbody": "8.0.2",
|
|
29
29
|
"@fastify/multipart": "9.2.1",
|
|
30
30
|
"@fastify/static": "8.2.0",
|
|
31
|
-
"@types/node": "22.18.
|
|
32
|
-
"esbuild": "0.25.
|
|
33
|
-
"fastify": "5.6.
|
|
34
|
-
"jsx-async-runtime": "
|
|
31
|
+
"@types/node": "22.18.10",
|
|
32
|
+
"esbuild": "0.25.10",
|
|
33
|
+
"fastify": "5.6.1",
|
|
34
|
+
"jsx-async-runtime": "2.0.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "esbuild --platform=node --format=esm --sourcemap=linked --sources-content=false --outdir=. serverless.ts"
|
package/serverless.js
CHANGED
|
@@ -64,7 +64,7 @@ async function handler(request, reply) {
|
|
|
64
64
|
}
|
|
65
65
|
if (module === void 0) {
|
|
66
66
|
try {
|
|
67
|
-
const modulePath = join(CWD, "dist", `
|
|
67
|
+
const modulePath = join(CWD, "dist", `server${route}.js`);
|
|
68
68
|
if (NODE_ENV_IS_DEVELOPMENT) {
|
|
69
69
|
if (typeof require === "function") {
|
|
70
70
|
if (require.cache[modulePath]) {
|
package/serverless.ts
CHANGED
|
@@ -110,7 +110,7 @@ async function handler(request: FastifyRequest, reply: FastifyReply) {
|
|
|
110
110
|
// Module was not loaded yet?
|
|
111
111
|
if (module === undefined) {
|
|
112
112
|
try {
|
|
113
|
-
const modulePath = join(CWD, "dist", `
|
|
113
|
+
const modulePath = join(CWD, "dist", `server${route}.js`);
|
|
114
114
|
if (NODE_ENV_IS_DEVELOPMENT) {
|
|
115
115
|
if (typeof require === "function") {
|
|
116
116
|
// Bun: Remove module from cache before importing
|