@lwrjs/config 0.9.0-alpha.24 → 0.9.0-alpha.27
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.
|
@@ -63,12 +63,12 @@ function mergeBundleConfig(config1, config2) {
|
|
|
63
63
|
const DEFAULT_BUNDLE_CONFIG = (0, import_defaults.getDefaultBundleConfig)(mode);
|
|
64
64
|
const defaultExclusions = config2?.bundleConfig?.UNSAFE_lwrDefaultExclude || config1?.bundleConfig?.UNSAFE_lwrDefaultExclude || DEFAULT_BUNDLE_CONFIG.exclude || [];
|
|
65
65
|
const configExclusions = config2?.bundleConfig?.exclude || config1?.bundleConfig?.exclude || [];
|
|
66
|
-
const configExternals = config2?.bundleConfig?.external || config1?.bundleConfig?.external ||
|
|
66
|
+
const configExternals = config2?.bundleConfig?.external || config1?.bundleConfig?.external || {};
|
|
67
67
|
return {
|
|
68
68
|
...config1?.bundleConfig,
|
|
69
69
|
...config2?.bundleConfig,
|
|
70
70
|
exclude: [...new Set([...defaultExclusions, ...configExclusions])],
|
|
71
|
-
external: {...configExternals}
|
|
71
|
+
external: {...DEFAULT_BUNDLE_CONFIG.external, ...configExternals}
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
function mergeLockerConfig(jsonConfig, config) {
|
package/build/es/utils/merge.js
CHANGED
|
@@ -41,15 +41,13 @@ export function mergeBundleConfig(config1, config2) {
|
|
|
41
41
|
DEFAULT_BUNDLE_CONFIG.exclude ||
|
|
42
42
|
[];
|
|
43
43
|
const configExclusions = config2?.bundleConfig?.exclude || config1?.bundleConfig?.exclude || [];
|
|
44
|
-
const configExternals = config2?.bundleConfig?.external ||
|
|
45
|
-
config1?.bundleConfig?.external ||
|
|
46
|
-
DEFAULT_BUNDLE_CONFIG.external ||
|
|
47
|
-
{};
|
|
44
|
+
const configExternals = config2?.bundleConfig?.external || config1?.bundleConfig?.external || {};
|
|
48
45
|
return {
|
|
49
46
|
...config1?.bundleConfig,
|
|
50
47
|
...config2?.bundleConfig,
|
|
51
48
|
exclude: [...new Set([...defaultExclusions, ...configExclusions])],
|
|
52
|
-
|
|
49
|
+
// Merge default externals with configured externals
|
|
50
|
+
external: { ...DEFAULT_BUNDLE_CONFIG.external, ...configExternals },
|
|
53
51
|
};
|
|
54
52
|
}
|
|
55
53
|
// merge default locker trusted namespaces/cmps with any trusted namespaces/cmps specified in config
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.9.0-alpha.
|
|
7
|
+
"version": "0.9.0-alpha.27",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"package.cjs"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lwrjs/diagnostics": "0.9.0-alpha.
|
|
40
|
-
"@lwrjs/shared-utils": "0.9.0-alpha.
|
|
39
|
+
"@lwrjs/diagnostics": "0.9.0-alpha.27",
|
|
40
|
+
"@lwrjs/shared-utils": "0.9.0-alpha.27",
|
|
41
41
|
"fs-extra": "^10.1.0",
|
|
42
42
|
"jsonc-parser": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@lwrjs/types": "0.9.0-alpha.
|
|
45
|
+
"@lwrjs/types": "0.9.0-alpha.27"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"lwc": "2.x"
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=16.0.0 <20"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "a7fcd8493b8a3286197e829b28b54670e7d4e97c"
|
|
54
54
|
}
|