@lwrjs/module-bundler 0.8.0-alpha.4 → 0.8.0-alpha.7

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.
@@ -38,7 +38,7 @@ var LwrModuleBundler = class {
38
38
  this.moduleRegistry = config.moduleRegistry;
39
39
  this.appObserver = config.appObserver;
40
40
  this.compiler = config.compiler;
41
- this.appObserver.onModuleDefinitionChange(() => {
41
+ this.appObserver?.onModuleDefinitionChange(() => {
42
42
  this.cache.clear();
43
43
  });
44
44
  }
@@ -2,12 +2,12 @@ import { AbstractModuleId, BundleConfig, BundleDefinition, LwrAppObserver, Modul
2
2
  interface LwrModuleBundlerConfig {
3
3
  compiler: Compiler;
4
4
  moduleRegistry: ModuleRegistry;
5
- appObserver: LwrAppObserver;
5
+ appObserver?: LwrAppObserver;
6
6
  }
7
7
  export declare class LwrModuleBundler implements ModuleBundler {
8
8
  compiler: Compiler;
9
9
  moduleRegistry: ModuleRegistry;
10
- appObserver: LwrAppObserver;
10
+ appObserver: LwrAppObserver | undefined;
11
11
  config: NormalizedLwrGlobalConfig;
12
12
  cache: Map<string, BundleDefinition>;
13
13
  private inflightBundleDefinitions;
package/build/es/index.js CHANGED
@@ -13,7 +13,7 @@ export class LwrModuleBundler {
13
13
  this.moduleRegistry = config.moduleRegistry;
14
14
  this.appObserver = config.appObserver;
15
15
  this.compiler = config.compiler;
16
- this.appObserver.onModuleDefinitionChange(() => {
16
+ this.appObserver?.onModuleDefinitionChange(() => {
17
17
  // TODO: This is a very naive approach however
18
18
  // this would only happen in non-prod environments
19
19
  this.cache.clear();
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.8.0-alpha.4",
7
+ "version": "0.8.0-alpha.7",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -30,15 +30,15 @@
30
30
  "build/**/*.d.ts"
31
31
  ],
32
32
  "dependencies": {
33
- "@lwrjs/compiler": "0.8.0-alpha.4",
34
- "@lwrjs/shared-utils": "0.8.0-alpha.4",
33
+ "@lwrjs/compiler": "0.8.0-alpha.7",
34
+ "@lwrjs/shared-utils": "0.8.0-alpha.7",
35
35
  "rollup": "~2.45.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.8.0-alpha.4"
38
+ "@lwrjs/types": "0.8.0-alpha.7"
39
39
  },
40
40
  "engines": {
41
41
  "node": ">=14.15.4 <19"
42
42
  },
43
- "gitHead": "a0cca59d2ab1e7596f03812d00180f898217ce4d"
43
+ "gitHead": "5ce7bdfff149ccdb761e11e6caab11abfffe2c0b"
44
44
  }