@lwrjs/config 0.15.0-alpha.22 → 0.15.0-alpha.23
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/defaults.cjs +2 -1
- package/build/cjs/validation/app-config-context.cjs +1 -0
- package/build/cjs/validation/app-config.cjs +1 -0
- package/build/es/defaults.js +2 -1
- package/build/es/validation/app-config-context.d.ts +1 -1
- package/build/es/validation/app-config-context.js +1 -0
- package/build/es/validation/app-config.js +1 -0
- package/package.json +6 -6
package/build/cjs/defaults.cjs
CHANGED
|
@@ -171,7 +171,8 @@ var DEFAULT_LWR_CONFIG = {
|
|
|
171
171
|
locker: import_shared_utils.DEFAULT_LWR_LOCKER_CONFIG,
|
|
172
172
|
uriTransformers: DEFAULT_URI_TRANSFORM_PLUGINS,
|
|
173
173
|
i18n: import_runtime_config.DEFAULT_I18N_CONFIG,
|
|
174
|
-
coreProxy: null
|
|
174
|
+
coreProxy: null,
|
|
175
|
+
_isSsrCompilerEnabled: false
|
|
175
176
|
};
|
|
176
177
|
var DEFAULT_LWR_BOOTSTRAP_CONFIG = {
|
|
177
178
|
autoBoot: true,
|
|
@@ -273,6 +273,7 @@ function validateRoot(node, validationContext, preMerge) {
|
|
|
273
273
|
validationContext.assertIsEnvironment((0, import_jsonc_parser.findNodeAtLocation)(node, ["environment"]), "environment");
|
|
274
274
|
validationContext.assertIsBasePath((0, import_jsonc_parser.findNodeAtLocation)(node, ["basePath"]), "basePath");
|
|
275
275
|
validationContext.assertIsCoreProxy((0, import_jsonc_parser.findNodeAtLocation)(node, ["coreProxy"]), validationContext);
|
|
276
|
+
validationContext.assertIsBoolean((0, import_jsonc_parser.findNodeAtLocation)(node, ["_isSsrCompilerEnabled"]), "_isSsrCompilerEnabled");
|
|
276
277
|
}
|
|
277
278
|
function validateLwrAppConfig(config, phase) {
|
|
278
279
|
const span = (0, import_instrumentation.getTracer)().startSpan({name: import_instrumentation.ConfigSpan.ValidateConfig});
|
package/build/es/defaults.js
CHANGED
|
@@ -146,7 +146,8 @@ export const DEFAULT_LWR_CONFIG = {
|
|
|
146
146
|
locker: DEFAULT_LWR_LOCKER_CONFIG,
|
|
147
147
|
uriTransformers: DEFAULT_URI_TRANSFORM_PLUGINS,
|
|
148
148
|
i18n: DEFAULT_I18N_CONFIG,
|
|
149
|
-
coreProxy: null,
|
|
149
|
+
coreProxy: null,
|
|
150
|
+
_isSsrCompilerEnabled: false,
|
|
150
151
|
};
|
|
151
152
|
export const DEFAULT_LWR_BOOTSTRAP_CONFIG = {
|
|
152
153
|
autoBoot: true,
|
|
@@ -27,7 +27,7 @@ interface ConfigMap {
|
|
|
27
27
|
staticSiteGenerator: RequiredSSGConfig;
|
|
28
28
|
coreProxy: RequiredDirectToCoreProxy;
|
|
29
29
|
}
|
|
30
|
-
export declare const ROOT_ATTRIBUTE_KEYS: ["amdLoader", "apiVersion", "assets", "assetProviders", "assetTransformers", "bundleConfig", "bundleProviders", "cacheDir", "caseSensitiveRoutes", "contentDir", "coreProxy", "environment", "errorRoutes", "esmLoader", "staticSiteGenerator", "globalData", "globalDataDir", "hooks", "i18n", "ignoreLwrConfigFile", "lwrConfigFile", "layoutsDir", "locker", "lwc", "lwrVersion", "moduleProviders", "port", "basePath", "resourceProviders", "rootDir", "routeHandlers", "routes", "serverMode", "minify", "serverType", "uriTransformers", "viewProviders", "viewTransformers"];
|
|
30
|
+
export declare const ROOT_ATTRIBUTE_KEYS: ["amdLoader", "apiVersion", "assets", "assetProviders", "assetTransformers", "bundleConfig", "bundleProviders", "cacheDir", "caseSensitiveRoutes", "contentDir", "coreProxy", "environment", "errorRoutes", "esmLoader", "staticSiteGenerator", "globalData", "globalDataDir", "hooks", "i18n", "ignoreLwrConfigFile", "_isSsrCompilerEnabled", "lwrConfigFile", "layoutsDir", "locker", "lwc", "lwrVersion", "moduleProviders", "port", "basePath", "resourceProviders", "rootDir", "routeHandlers", "routes", "serverMode", "minify", "serverType", "uriTransformers", "viewProviders", "viewTransformers"];
|
|
31
31
|
export declare const ASSET_DIR_ATTRIBUTE_KEYS: ["alias", "dir", "urlPath", "root"];
|
|
32
32
|
export declare const ASSET_FILE_ATTRIBUTE_KEYS: ["alias", "file", "urlPath"];
|
|
33
33
|
export declare const LOCKER_ATTRIBUTE_KEYS: ["enabled", "trustedComponents"];
|
|
@@ -342,6 +342,7 @@ function validateRoot(node, validationContext, preMerge) {
|
|
|
342
342
|
validationContext.assertIsEnvironment(findNode(node, ['environment']), 'environment');
|
|
343
343
|
validationContext.assertIsBasePath(findNode(node, ['basePath']), 'basePath');
|
|
344
344
|
validationContext.assertIsCoreProxy(findNode(node, ['coreProxy']), validationContext);
|
|
345
|
+
validationContext.assertIsBoolean(findNode(node, ['_isSsrCompilerEnabled']), '_isSsrCompilerEnabled');
|
|
345
346
|
}
|
|
346
347
|
export function validateLwrAppConfig(config, phase) {
|
|
347
348
|
const span = getTracer().startSpan({ name: ConfigSpan.ValidateConfig });
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.15.0-alpha.
|
|
7
|
+
"version": "0.15.0-alpha.23",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"test": "jest"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@lwrjs/diagnostics": "0.15.0-alpha.
|
|
46
|
-
"@lwrjs/instrumentation": "0.15.0-alpha.
|
|
47
|
-
"@lwrjs/shared-utils": "0.15.0-alpha.
|
|
45
|
+
"@lwrjs/diagnostics": "0.15.0-alpha.23",
|
|
46
|
+
"@lwrjs/instrumentation": "0.15.0-alpha.23",
|
|
47
|
+
"@lwrjs/shared-utils": "0.15.0-alpha.23",
|
|
48
48
|
"fs-extra": "^11.2.0",
|
|
49
49
|
"jsonc-parser": "^3.3.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@lwrjs/types": "0.15.0-alpha.
|
|
52
|
+
"@lwrjs/types": "0.15.0-alpha.23",
|
|
53
53
|
"jest": "^26.6.3",
|
|
54
54
|
"memfs": "^4.9.3",
|
|
55
55
|
"ts-jest": "^26.5.6"
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"volta": {
|
|
72
72
|
"extends": "../../../package.json"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "07592ebcbcfd739a9a8882b2f8f56da50332250d"
|
|
75
75
|
}
|