@lwrjs/module-registry 0.6.0-alpha.15 → 0.6.0-alpha.16

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.
@@ -109,7 +109,8 @@ var LwrModuleRegistry = class {
109
109
  const moduleCompiled = await this.delegateGetModuleOnProviders(moduleId, runtimeParams);
110
110
  if (locker.enabled && !locker.clientOnly) {
111
111
  const {runtimeEnvironment} = this.context;
112
- const sourcemap = typeof runtimeEnvironment.sourceMapUrl === "string";
112
+ const {minify, sourceMapUrl} = runtimeEnvironment;
113
+ const sourcemap = typeof sourceMapUrl === "string" || !minify;
113
114
  const {code: lockerizedCode} = this.context.compiler.lockerize(moduleCompiled, locker, sourcemap);
114
115
  moduleCompiled.compiledSource = lockerizedCode;
115
116
  }
package/build/es/index.js CHANGED
@@ -96,7 +96,10 @@ export class LwrModuleRegistry {
96
96
  /** Locker before collecting dep module records so locker imports are processed normally */
97
97
  if (locker.enabled && !locker.clientOnly) {
98
98
  const { runtimeEnvironment } = this.context;
99
- const sourcemap = typeof runtimeEnvironment.sourceMapUrl === 'string';
99
+ // Locker should generate inline source maps in non-minified modes
100
+ // in addition to being explicitly enabled.
101
+ const { minify, sourceMapUrl } = runtimeEnvironment;
102
+ const sourcemap = typeof sourceMapUrl === 'string' || !minify;
100
103
  const { code: lockerizedCode } = this.context.compiler.lockerize(moduleCompiled, locker, sourcemap);
101
104
  moduleCompiled.compiledSource = lockerizedCode;
102
105
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.6.0-alpha.15",
7
+ "version": "0.6.0-alpha.16",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,18 +30,18 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/diagnostics": "0.6.0-alpha.15",
34
- "@lwrjs/shared-utils": "0.6.0-alpha.15",
33
+ "@lwrjs/diagnostics": "0.6.0-alpha.16",
34
+ "@lwrjs/shared-utils": "0.6.0-alpha.16",
35
35
  "es-module-lexer": "^0.3.18",
36
36
  "ws": "^7.2.5"
37
37
  },
38
38
  "devDependencies": {
39
- "@lwrjs/types": "0.6.0-alpha.15",
39
+ "@lwrjs/types": "0.6.0-alpha.16",
40
40
  "@types/es-module-lexer": "^0.3.0",
41
41
  "@types/ws": "^7.2.4"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=14.15.4 <17"
45
45
  },
46
- "gitHead": "ebff01c190ee6f2777028f103e51446a1a8f00f7"
46
+ "gitHead": "2ccfba164126587f8c898da5994b6749ec23aa22"
47
47
  }