@lwrjs/config 0.15.0-alpha.36 → 0.15.0-alpha.38

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.
@@ -170,6 +170,8 @@ function resolveGlobalConfig(configArg, options) {
170
170
  const span = (0, import_instrumentation.getTracer)().startSpan({name: import_instrumentation.ConfigSpan.ResolveConfig});
171
171
  const mergedConfig = mergeConfig(configArg);
172
172
  let normalizedConfig = normalizeConfig(mergedConfig);
173
+ if (normalizedConfig._isSsrCompilerEnabled)
174
+ process.env.SSR_COMPILER_ENABLED = "true";
173
175
  if (options?.useStaticProviders) {
174
176
  normalizedConfig = applyStaticProviderConfig(normalizedConfig);
175
177
  }
@@ -124,6 +124,8 @@ function executeStartHooks(hooks, globalConfig, runtimeEnvironment, skipValidate
124
124
  }
125
125
  globalConfig.routes = (0, import_routes.normalizeRoutes)(filteredRoutes, globalConfig.routeHandlers);
126
126
  globalConfig.errorRoutes = (0, import_routes.normalizeRoutes)(globalConfig.errorRoutes, globalConfig.routeHandlers);
127
+ if (globalConfig._isSsrCompilerEnabled)
128
+ process.env.SSR_COMPILER_ENABLED = "true";
127
129
  if (!skipValidate) {
128
130
  (0, import_app_config.validateLwrAppConfig)(globalConfig, "post");
129
131
  }
@@ -233,6 +233,11 @@ export function resolveGlobalConfig(configArg, options) {
233
233
  const span = getTracer().startSpan({ name: ConfigSpan.ResolveConfig });
234
234
  const mergedConfig = mergeConfig(configArg);
235
235
  let normalizedConfig = normalizeConfig(mergedConfig);
236
+ // TEMP: Add a feature flag to hold the app config value
237
+ // This is a temporary flag attached to a Core gate. Using an env var avoids the
238
+ // proliferation of function arguments to pass this flag around to dozens of places
239
+ if (normalizedConfig._isSsrCompilerEnabled)
240
+ process.env.SSR_COMPILER_ENABLED = 'true';
236
241
  // Add static providers if applicable
237
242
  if (options?.useStaticProviders) {
238
243
  normalizedConfig = applyStaticProviderConfig(normalizedConfig);
package/build/es/hooks.js CHANGED
@@ -129,6 +129,11 @@ export function executeStartHooks(hooks, globalConfig, runtimeEnvironment, skipV
129
129
  }
130
130
  globalConfig.routes = normalizeRoutes(filteredRoutes, globalConfig.routeHandlers);
131
131
  globalConfig.errorRoutes = normalizeRoutes(globalConfig.errorRoutes, globalConfig.routeHandlers);
132
+ // TEMP: Add a feature flag to hold the app config value
133
+ // This is a temporary flag attached to a Core gate. Using an env var avoids the
134
+ // proliferation of function arguments to pass this flag around to dozens of places
135
+ if (globalConfig._isSsrCompilerEnabled)
136
+ process.env.SSR_COMPILER_ENABLED = 'true';
132
137
  if (!skipValidate) {
133
138
  validateLwrAppConfig(globalConfig, 'post');
134
139
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.15.0-alpha.36",
7
+ "version": "0.15.0-alpha.38",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -42,14 +42,14 @@
42
42
  "test": "jest"
43
43
  },
44
44
  "dependencies": {
45
- "@lwrjs/diagnostics": "0.15.0-alpha.36",
46
- "@lwrjs/instrumentation": "0.15.0-alpha.36",
47
- "@lwrjs/shared-utils": "0.15.0-alpha.36",
45
+ "@lwrjs/diagnostics": "0.15.0-alpha.38",
46
+ "@lwrjs/instrumentation": "0.15.0-alpha.38",
47
+ "@lwrjs/shared-utils": "0.15.0-alpha.38",
48
48
  "fs-extra": "^11.2.0",
49
49
  "jsonc-parser": "^3.3.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@lwrjs/types": "0.15.0-alpha.36",
52
+ "@lwrjs/types": "0.15.0-alpha.38",
53
53
  "jest": "^26.6.3",
54
54
  "memfs": "^4.13.0",
55
55
  "ts-jest": "^26.5.6"
@@ -57,7 +57,7 @@
57
57
  "peerDependencies": {
58
58
  "@lwc/engine-dom": ">= 2.x",
59
59
  "@lwc/synthetic-shadow": ">= 2.x",
60
- "@lwrjs/esbuild": "0.13.x || >= 0.13.0-alpha",
60
+ "@lwrjs/esbuild": "0.15.x || >= 0.15.0-alpha",
61
61
  "lwc": ">= 2.x"
62
62
  },
63
63
  "peerDependenciesMeta": {
@@ -71,5 +71,5 @@
71
71
  "volta": {
72
72
  "extends": "../../../package.json"
73
73
  },
74
- "gitHead": "325f5a8d06e1af07795f108e32c8300c06e62aa3"
74
+ "gitHead": "9dbc44e168d9926f80db6022643efc3aa16b0782"
75
75
  }