@lwrjs/module-bundler 0.8.0-alpha.3 → 0.8.0-alpha.6
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/cjs/index.cjs +1 -1
- package/build/es/index.d.ts +2 -2
- package/build/es/index.js +1 -1
- package/package.json +5 -5
package/build/cjs/index.cjs
CHANGED
|
@@ -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
|
|
41
|
+
this.appObserver?.onModuleDefinitionChange(() => {
|
|
42
42
|
this.cache.clear();
|
|
43
43
|
});
|
|
44
44
|
}
|
package/build/es/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { AbstractModuleId, BundleConfig, BundleDefinition, LwrAppObserver, Modul
|
|
|
2
2
|
interface LwrModuleBundlerConfig {
|
|
3
3
|
compiler: Compiler;
|
|
4
4
|
moduleRegistry: ModuleRegistry;
|
|
5
|
-
appObserver
|
|
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
|
|
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.
|
|
7
|
+
"version": "0.8.0-alpha.6",
|
|
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.
|
|
34
|
-
"@lwrjs/shared-utils": "0.8.0-alpha.
|
|
33
|
+
"@lwrjs/compiler": "0.8.0-alpha.6",
|
|
34
|
+
"@lwrjs/shared-utils": "0.8.0-alpha.6",
|
|
35
35
|
"rollup": "~2.45.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lwrjs/types": "0.8.0-alpha.
|
|
38
|
+
"@lwrjs/types": "0.8.0-alpha.6"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=14.15.4 <19"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cf34943d7df7b570d1183836868462c10a6a136c"
|
|
44
44
|
}
|