@lwrjs/tools 0.12.0-alpha.10 → 0.12.0-alpha.12
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.
|
@@ -44,7 +44,7 @@ function generateLwrEntry() {
|
|
|
44
44
|
`/* This module is generated */`,
|
|
45
45
|
`import { createHandler } from '@lwrjs/lambda';`,
|
|
46
46
|
`import * as build from './lwr.build.js';`,
|
|
47
|
-
`const handler = createHandler(build);`,
|
|
47
|
+
`const handler = !process.env.LOCAL ? createHandler(build) : undefined;`,
|
|
48
48
|
`export { handler as get, build as MRT_APP_CONFIG };`
|
|
49
49
|
].join("\n"),
|
|
50
50
|
loader: "ts",
|
|
@@ -32,7 +32,7 @@ export default function generateLwrEntry() {
|
|
|
32
32
|
// The server build module MUST NOT require asynchronous initialization to support running on MRT
|
|
33
33
|
// Once MRT supports ESM, top-level await could be used at this point to perform some asynchronous
|
|
34
34
|
// initialization.
|
|
35
|
-
`const handler = createHandler(build);`,
|
|
35
|
+
`const handler = !process.env.LOCAL ? createHandler(build) : undefined;`,
|
|
36
36
|
// MRT expects the handler to be a named export: `get`
|
|
37
37
|
`export { handler as get, build as MRT_APP_CONFIG };`,
|
|
38
38
|
].join('\n'),
|
package/build/es/server-build.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.12.0-alpha.
|
|
7
|
+
"version": "0.12.0-alpha.12",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"package.cjs"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lwrjs/config": "0.12.0-alpha.
|
|
36
|
-
"@lwrjs/core": "0.12.0-alpha.
|
|
37
|
-
"@lwrjs/diagnostics": "0.12.0-alpha.
|
|
38
|
-
"@lwrjs/shared-utils": "0.12.0-alpha.
|
|
35
|
+
"@lwrjs/config": "0.12.0-alpha.12",
|
|
36
|
+
"@lwrjs/core": "0.12.0-alpha.12",
|
|
37
|
+
"@lwrjs/diagnostics": "0.12.0-alpha.12",
|
|
38
|
+
"@lwrjs/shared-utils": "0.12.0-alpha.12",
|
|
39
39
|
"esbuild": "^0.17.4",
|
|
40
40
|
"fs-extra": "^11.1.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@lwrjs/types": "0.12.0-alpha.
|
|
43
|
+
"@lwrjs/types": "0.12.0-alpha.12",
|
|
44
44
|
"mock-fs": "^5.2.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18.0.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "bc8a88bce246e9ec00641955152de526ea030ebb"
|
|
53
53
|
}
|