@lwrjs/static 0.12.0-alpha.20 → 0.12.0-alpha.21

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.
@@ -63,7 +63,7 @@ var StaticBundleProvider = class {
63
63
  return void 0;
64
64
  }
65
65
  const bundlePath = import_path.default.join(this.siteRootDir, metadata.path);
66
- const skipDebugModeCode = debug && (0, import_shared_utils.getFeatureFlags)().SSR_STATIC_BUNDLES;
66
+ const skipDebugModeCode = debug && (0, import_shared_utils.getFeatureFlags)().SSR_STATIC_BUNDLES && !process.env.SSR_DEBUG;
67
67
  const code = skipDebugModeCode ? 'throw new Error("Unexpected code reference");' : (await import_fs_extra.default.readFile(bundlePath)).toString("utf-8");
68
68
  const imports = metadata.imports.map((specifier2) => {
69
69
  const importModule = (0, import_shared_utils.explodeSpecifier)(specifier2);
@@ -35,7 +35,10 @@ export default class StaticBundleProvider {
35
35
  // Have to make the bundle code available for SSR
36
36
  const bundlePath = path.join(this.siteRootDir, metadata.path);
37
37
  // workaround: debug bundles don't exist for SSR in this scenario since it's never actually used
38
- const skipDebugModeCode = debug && getFeatureFlags().SSR_STATIC_BUNDLES;
38
+ const skipDebugModeCode = debug &&
39
+ getFeatureFlags().SSR_STATIC_BUNDLES &&
40
+ // TODO: remove once SSR_DEBUG is migrated to dev CLI
41
+ !process.env.SSR_DEBUG;
39
42
  const code = skipDebugModeCode
40
43
  ? 'throw new Error("Unexpected code reference");'
41
44
  : (await fs.readFile(bundlePath)).toString('utf-8');
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.12.0-alpha.20",
7
+ "version": "0.12.0-alpha.21",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -48,11 +48,11 @@
48
48
  "build/**/*.d.ts"
49
49
  ],
50
50
  "dependencies": {
51
- "@lwrjs/diagnostics": "0.12.0-alpha.20",
52
- "@lwrjs/shared-utils": "0.12.0-alpha.20"
51
+ "@lwrjs/diagnostics": "0.12.0-alpha.21",
52
+ "@lwrjs/shared-utils": "0.12.0-alpha.21"
53
53
  },
54
54
  "devDependencies": {
55
- "@lwrjs/types": "0.12.0-alpha.20",
55
+ "@lwrjs/types": "0.12.0-alpha.21",
56
56
  "@types/express": "^4.17.21",
57
57
  "jest": "^26.6.3",
58
58
  "jest-express": "^1.12.0",
@@ -65,5 +65,5 @@
65
65
  "volta": {
66
66
  "extends": "../../../package.json"
67
67
  },
68
- "gitHead": "ae1793e34eaf4e9b97996d7aea9031908b23a13a"
68
+ "gitHead": "3d77678ca2f568fcbe29efa2bf7e6f75778be50c"
69
69
  }