@lwrjs/tools 0.9.0-alpha.20 → 0.9.0-alpha.22
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/build/es/server-build.js +5 -3
- package/package.json +4 -4
package/build/es/server-build.js
CHANGED
|
@@ -3,7 +3,7 @@ import fs from 'fs-extra';
|
|
|
3
3
|
import esbuild from 'esbuild';
|
|
4
4
|
import { performance } from 'perf_hooks';
|
|
5
5
|
import { getFeatureFlags, logger } from '@lwrjs/shared-utils';
|
|
6
|
-
import { LWR_VERSION } from '@lwrjs/config';
|
|
6
|
+
import { LWR_VERSION, LWC_VERSION } from '@lwrjs/config';
|
|
7
7
|
import generateLwrEntry from './plugins/generate-entry-plugin.js';
|
|
8
8
|
import buildLwrServer from './plugins/build-server-plugin.js';
|
|
9
9
|
async function build(buildOptions, config) {
|
|
@@ -13,7 +13,7 @@ async function build(buildOptions, config) {
|
|
|
13
13
|
entryPoints: ['./lwr.entry.js'],
|
|
14
14
|
bundle: true,
|
|
15
15
|
minify,
|
|
16
|
-
sourcemap:
|
|
16
|
+
sourcemap: true,
|
|
17
17
|
format: 'cjs',
|
|
18
18
|
platform: 'node',
|
|
19
19
|
logLevel: 'silent',
|
|
@@ -73,6 +73,8 @@ function createEnvVarHeader() {
|
|
|
73
73
|
initFeatureFlagsString += `process.env.${key} = 'true';`;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
const LWR_VERSION_ASSIGNMENT = `globalThis.LWR_VERSION='${LWR_VERSION}';`;
|
|
77
|
+
const LWC_VERSION_ASSIGNMENT = `globalThis.LWC_VERSION='${LWC_VERSION}';`;
|
|
78
|
+
return `${LWR_VERSION_ASSIGNMENT}${LWC_VERSION_ASSIGNMENT}${initFeatureFlagsString}`;
|
|
77
79
|
}
|
|
78
80
|
//# sourceMappingURL=server-build.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0-alpha.
|
|
7
|
+
"version": "0.9.0-alpha.22",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"package.cjs"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lwrjs/core": "0.9.0-alpha.
|
|
35
|
+
"@lwrjs/core": "0.9.0-alpha.22",
|
|
36
36
|
"esbuild": "^0.17.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@lwrjs/types": "0.9.0-alpha.
|
|
39
|
+
"@lwrjs/types": "0.9.0-alpha.22"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"lwc": "2.x"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=14.15.4 <19"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d7e7a6e84df652a09d78b9b0fadca271a438a01c"
|
|
48
48
|
}
|