@lwrjs/tools 0.12.0-alpha.2 → 0.12.0-alpha.4

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.
@@ -42,7 +42,6 @@ function generateLwrEntry() {
42
42
  build.onLoad({filter: /.*/, namespace: "lwr-entry"}, (args) => ({
43
43
  contents: [
44
44
  `/* This module is generated */`,
45
- `import 'source-map-support/register'`,
46
45
  `import { createHandler } from '@lwrjs/lambda';`,
47
46
  `import * as build from './lwr.build.js';`,
48
47
  `const handler = createHandler(build);`,
@@ -79,7 +79,7 @@ function createEnvVarHeader() {
79
79
  let initFeatureFlagsString = "";
80
80
  for (const [key, val] of Object.entries(currentFeatureFlags)) {
81
81
  if (val) {
82
- initFeatureFlagsString += `process.env.${key} = 'true';`;
82
+ initFeatureFlagsString += `process.env.${key} = '${val.toString()}';`;
83
83
  }
84
84
  }
85
85
  const LWR_VERSION_ASSIGNMENT = `globalThis.LWR_VERSION='${import_config.LWR_VERSION}';`;
@@ -24,11 +24,6 @@ export default function generateLwrEntry() {
24
24
  build.onLoad({ filter: /.*/, namespace: 'lwr-entry' }, (args) => ({
25
25
  contents: [
26
26
  `/* This module is generated */`,
27
- // This package is not technically necessary as node 12 includes this functionality, but in the
28
- // LWR@MRT environment, we have no control over environment variables so we have no way to configure
29
- // NODE_OPTIONS='--enable-source-maps'. So this is a necessary workaround for now with minimal downside.
30
- // See: https://nodejs.org/docs/latest-v18.x/api/cli.html#--enable-source-maps
31
- `import 'source-map-support/register'`,
32
27
  `import { createHandler } from '@lwrjs/lambda';`,
33
28
  // Importing the server build module at this point enables support for ESM bundling.
34
29
  // If the server build module was imported in `createHandler`, it would need to be exposed
@@ -70,7 +70,7 @@ function createEnvVarHeader() {
70
70
  let initFeatureFlagsString = '';
71
71
  for (const [key, val] of Object.entries(currentFeatureFlags)) {
72
72
  if (val) {
73
- initFeatureFlagsString += `process.env.${key} = 'true';`;
73
+ initFeatureFlagsString += `process.env.${key} = '${val.toString()}';`;
74
74
  }
75
75
  }
76
76
  const LWR_VERSION_ASSIGNMENT = `globalThis.LWR_VERSION='${LWR_VERSION}';`;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.12.0-alpha.2",
7
+ "version": "0.12.0-alpha.4",
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.2",
36
- "@lwrjs/core": "0.12.0-alpha.2",
37
- "@lwrjs/diagnostics": "0.12.0-alpha.2",
38
- "@lwrjs/shared-utils": "0.12.0-alpha.2",
35
+ "@lwrjs/config": "0.12.0-alpha.4",
36
+ "@lwrjs/core": "0.12.0-alpha.4",
37
+ "@lwrjs/diagnostics": "0.12.0-alpha.4",
38
+ "@lwrjs/shared-utils": "0.12.0-alpha.4",
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.2",
43
+ "@lwrjs/types": "0.12.0-alpha.4",
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": "586a2aa659882483af9249dc3db7fe07bc842a25"
52
+ "gitHead": "7b68e0ffa5e4d61ae97a4b020f9690ee7b08d5da"
53
53
  }