@lwrjs/module-registry 0.10.0-alpha.20 → 0.10.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.
@@ -116,15 +116,7 @@ var LwrModuleRegistry = class {
116
116
  });
117
117
  }
118
118
  async createModuleDefinition(moduleId, runtimeParams) {
119
- const {locker} = this.globalConfig;
120
119
  const moduleCompiled = await this.delegateGetModuleOnProviders(moduleId, runtimeParams);
121
- if (locker.enabled && !locker.clientOnly) {
122
- const {runtimeEnvironment} = this.context;
123
- const {minify, sourceMapUrl} = runtimeEnvironment;
124
- const sourcemap = typeof sourceMapUrl === "string" || !minify;
125
- const {code: lockerizedCode} = (0, import_compiler.lockerize)(moduleCompiled, locker, sourcemap);
126
- moduleCompiled.compiledSource = lockerizedCode;
127
- }
128
120
  const moduleRecord = await (0, import_module_record.getModuleRecord)(moduleCompiled, this);
129
121
  return {...moduleCompiled, moduleRecord};
130
122
  }
package/build/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { LwrUnresolvableError, createSingleDiagnosticError, descriptions } from '@lwrjs/diagnostics';
2
2
  import { discoverInterchangeableModules, getCacheKeyFromJson, InflightTasks, LATEST_SIGNATURE, ModuleNameType, getGroupName, } from '@lwrjs/shared-utils';
3
3
  // dependencies @locker/compiler and rollup are in this package.json is to satisfy the shared-utils/compiler optional dependencies
4
- import { convertToAmd, lockerize } from '@lwrjs/shared-utils/compiler';
4
+ import { convertToAmd } from '@lwrjs/shared-utils/compiler';
5
5
  import { link } from './linker/linker.js';
6
6
  import { getModuleRecord } from './module-record.js';
7
7
  import amdLinkingStrategy from './linker/strategies/amd-strategy.js';
@@ -107,18 +107,7 @@ export class LwrModuleRegistry {
107
107
  });
108
108
  }
109
109
  async createModuleDefinition(moduleId, runtimeParams) {
110
- const { locker } = this.globalConfig;
111
110
  const moduleCompiled = await this.delegateGetModuleOnProviders(moduleId, runtimeParams); // provider source + hash
112
- /** Locker before collecting dep module records so locker imports are processed normally */
113
- if (locker.enabled && !locker.clientOnly) {
114
- const { runtimeEnvironment } = this.context;
115
- // Locker should generate inline source maps in non-minified modes
116
- // in addition to being explicitly enabled.
117
- const { minify, sourceMapUrl } = runtimeEnvironment;
118
- const sourcemap = typeof sourceMapUrl === 'string' || !minify;
119
- const { code: lockerizedCode } = lockerize(moduleCompiled, locker, sourcemap);
120
- moduleCompiled.compiledSource = lockerizedCode;
121
- }
122
111
  const moduleRecord = await getModuleRecord(moduleCompiled, this);
123
112
  return { ...moduleCompiled, moduleRecord };
124
113
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.10.0-alpha.20",
7
+ "version": "0.10.0-alpha.22",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,16 +30,15 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@locker/compiler": "0.19.5",
34
- "@lwrjs/diagnostics": "0.10.0-alpha.20",
35
- "@lwrjs/shared-utils": "0.10.0-alpha.20",
33
+ "@lwrjs/diagnostics": "0.10.0-alpha.22",
34
+ "@lwrjs/shared-utils": "0.10.0-alpha.22",
36
35
  "rollup": "^2.78.0"
37
36
  },
38
37
  "devDependencies": {
39
- "@lwrjs/types": "0.10.0-alpha.20"
38
+ "@lwrjs/types": "0.10.0-alpha.22"
40
39
  },
41
40
  "engines": {
42
41
  "node": ">=16.0.0"
43
42
  },
44
- "gitHead": "45a867fc54e98f77dd442ccd5f668e23027b9246"
43
+ "gitHead": "ef991388d9158dbca91656d7ec7c0a641b477f4f"
45
44
  }