@lwrjs/lwc-module-provider 0.17.2-alpha.30 → 0.17.2-alpha.31

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.
package/build/es/cache.js CHANGED
@@ -24,6 +24,9 @@ export function setupModuleCache(cacheDir) {
24
24
  }
25
25
  }
26
26
  class IndexPersister {
27
+ lwcCacheDir;
28
+ lwcCacheIndex;
29
+ updateTimer;
27
30
  async persist({ lwcCacheIndex, lwcCacheDir }) {
28
31
  // Clear previous timer
29
32
  if (this.updateTimer) {
@@ -21,6 +21,7 @@ function skipCompilation(namespace, theName) {
21
21
  return false;
22
22
  }
23
23
  export class LwcCompiler {
24
+ compiler;
24
25
  constructor(compiler) {
25
26
  // Allow callers to pass in their own version of the LWC compiler
26
27
  this.compiler = compiler;
package/build/es/index.js CHANGED
@@ -8,15 +8,24 @@ function getModuleEntryCacheKey(specifier, version, targetSSR) {
8
8
  return `${specifier}@${version}|${targetSSR ? 'server' : 'client'}`;
9
9
  }
10
10
  export default class LwcModuleProvider {
11
+ name = 'lwc-module-provider';
12
+ rootDir;
13
+ moduleFsCacheEnabled;
14
+ interchangeableModulesEnabled;
15
+ lwcCacheDir;
16
+ lwcCacheIndex;
17
+ moduleSourceCache = new Map(); // key = filepath
18
+ packageVersionCache = new Map();
19
+ modules;
20
+ emitter;
21
+ watcher;
22
+ watchedModuleContextMap = new Map(); // key = filepath
23
+ moduleEntryVersionCache = new Map(); // key = moduleEntry.id
24
+ importerMappingCache = new Map();
25
+ lwcCompiler;
26
+ inflightGetModuleJobs = new InflightTasks();
27
+ inflightGetModuleEntryJobs = new InflightTasks();
11
28
  constructor(options = {}, { appEmitter, config: { modules, rootDir, cacheDir, environment }, runtimeEnvironment: { watchFiles }, watcherFactory, }) {
12
- this.name = 'lwc-module-provider';
13
- this.moduleSourceCache = new Map(); // key = filepath
14
- this.packageVersionCache = new Map();
15
- this.watchedModuleContextMap = new Map(); // key = filepath
16
- this.moduleEntryVersionCache = new Map(); // key = moduleEntry.id
17
- this.importerMappingCache = new Map();
18
- this.inflightGetModuleJobs = new InflightTasks();
19
- this.inflightGetModuleEntryJobs = new InflightTasks();
20
29
  const { disableCaching } = options;
21
30
  this.emitter = appEmitter;
22
31
  this.modules = modules;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.17.2-alpha.30",
7
+ "version": "0.17.2-alpha.31",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -35,13 +35,13 @@
35
35
  "dependencies": {
36
36
  "@babel/core": "^7.26.10",
37
37
  "@babel/preset-typescript": "^7.26.0",
38
- "@lwrjs/diagnostics": "0.17.2-alpha.30",
39
- "@lwrjs/fs-watch": "0.17.2-alpha.30",
40
- "@lwrjs/shared-utils": "0.17.2-alpha.30",
38
+ "@lwrjs/diagnostics": "0.17.2-alpha.31",
39
+ "@lwrjs/fs-watch": "0.17.2-alpha.31",
40
+ "@lwrjs/shared-utils": "0.17.2-alpha.31",
41
41
  "fs-extra": "^11.2.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@lwrjs/types": "0.17.2-alpha.30",
44
+ "@lwrjs/types": "0.17.2-alpha.31",
45
45
  "memfs": "^4.13.0",
46
46
  "typescript": "^4.9.5"
47
47
  },
@@ -55,5 +55,5 @@
55
55
  "volta": {
56
56
  "extends": "../../../package.json"
57
57
  },
58
- "gitHead": "818bbb13d2d4b14d128c4c4f23229c9ce7458a23"
58
+ "gitHead": "bbb087ab080321047b10bbcda40e88e69b6a69a5"
59
59
  }