@lwrjs/module-bundler 0.10.0-alpha.19 → 0.10.0-alpha.20

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.
@@ -132,7 +132,8 @@ async function amdBundler(rootModuleId, moduleRegistry, minify = false, runtimeE
132
132
  const dynamicImports = new Map();
133
133
  const groupName = (0, import_shared_utils.getGroupName)(rootModuleId.specifier, groups);
134
134
  const groupies = groupName && groups[groupName];
135
- const cachedGroupieCode = groupName && groupieCodeCache.get(groupName);
135
+ const cacheKey = (0, import_shared_utils.getCacheKeyFromJson)({groupName, exclude, external});
136
+ const cachedGroupieCode = groupName && groupieCodeCache.get(cacheKey);
136
137
  const getModuleGraphsWrapper = (graphSpecifier) => {
137
138
  const graphOptions = {
138
139
  includeLinkedDefinitions: true,
@@ -1,4 +1,4 @@
1
- import { GraphDepth, createAmdAlias, explodeSpecifier, getModuleGraphs, getSpecifier, getGroupName, isGroupie, } from '@lwrjs/shared-utils';
1
+ import { GraphDepth, createAmdAlias, explodeSpecifier, getModuleGraphs, getSpecifier, getGroupName, isGroupie, getCacheKeyFromJson, } from '@lwrjs/shared-utils';
2
2
  import { rollup } from 'rollup';
3
3
  import replace from '@rollup/plugin-replace';
4
4
  import { bundleDefinitions } from './rollup-amd-bundler-plugin.js';
@@ -131,7 +131,10 @@ export async function amdBundler(rootModuleId, moduleRegistry, minify = false, r
131
131
  const dynamicImports = new Map();
132
132
  const groupName = getGroupName(rootModuleId.specifier, groups);
133
133
  const groupies = groupName && groups[groupName];
134
- const cachedGroupieCode = groupName && groupieCodeCache.get(groupName);
134
+ // Note: in reality, bundleConfig cannot change at runtime, but
135
+ // use it as a cacheKey anyways in case we want to support it in the future
136
+ const cacheKey = getCacheKeyFromJson({ groupName, exclude, external });
137
+ const cachedGroupieCode = groupName && groupieCodeCache.get(cacheKey);
135
138
  const getModuleGraphsWrapper = (graphSpecifier) => {
136
139
  const graphOptions = {
137
140
  includeLinkedDefinitions: true,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.10.0-alpha.19",
7
+ "version": "0.10.0-alpha.20",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -47,13 +47,13 @@
47
47
  "build/**/*.d.ts"
48
48
  ],
49
49
  "dependencies": {
50
- "@lwc/features": "2.46.0",
51
- "@lwrjs/shared-utils": "0.10.0-alpha.19",
50
+ "@lwc/features": "2.50.0",
51
+ "@lwrjs/shared-utils": "0.10.0-alpha.20",
52
52
  "@rollup/plugin-replace": "^2.4.2",
53
53
  "rollup": "^2.78.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@lwrjs/types": "0.10.0-alpha.19",
56
+ "@lwrjs/types": "0.10.0-alpha.20",
57
57
  "jest": "^26.6.3",
58
58
  "ts-jest": "^26.5.6"
59
59
  },
@@ -66,5 +66,5 @@
66
66
  "volta": {
67
67
  "extends": "../../../package.json"
68
68
  },
69
- "gitHead": "0bd55139c08ddf5a532978cfa9e037eaf27e78e2"
69
+ "gitHead": "45a867fc54e98f77dd442ccd5f668e23027b9246"
70
70
  }