@lwrjs/module-bundler 0.9.0-alpha.18 → 0.9.0-alpha.19

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.
@@ -47,7 +47,7 @@ async function bundle(id, moduleGraphs, minify = false) {
47
47
  });
48
48
  return output[0].code;
49
49
  }
50
- async function amdBundler(moduleId, moduleRegistry, minify = false, runtimeEnvironment, runtimeParams = {}, {bundleConfig, amdLoader}, bundleConfigOverrides) {
50
+ async function amdBundler(moduleId, moduleRegistry, minify = false, runtimeEnvironment, runtimeParams = {}, {bundleConfig}, bundleConfigOverrides) {
51
51
  const {exclude, external = {}} = (0, import_bundle_common.overrideBundleConfig)(bundleConfig, bundleConfigOverrides);
52
52
  const externalsArray = Object.keys(external);
53
53
  const requiredImports = new Map();
@@ -59,7 +59,7 @@ async function amdBundler(moduleId, moduleRegistry, minify = false, runtimeEnvir
59
59
  static: import_shared_utils.GraphDepth.ALL,
60
60
  dynamic: 0,
61
61
  includeId: (moduleRef) => {
62
- if (externalsArray.includes(moduleRef.specifier) || moduleRef.specifier === amdLoader) {
62
+ if (externalsArray.includes(moduleRef.specifier)) {
63
63
  return false;
64
64
  } else if (exclude?.includes(moduleRef.specifier)) {
65
65
  requiredImports.set(`${moduleRef.specifier}_${moduleRef.version}`, moduleRef);
@@ -1,3 +1,3 @@
1
1
  import type { AbstractModuleId, BundleConfigOverrides, BundleDefinition, ModuleRegistry, ProviderAppConfig, RuntimeEnvironment, RuntimeParams } from '@lwrjs/types';
2
- export declare function amdBundler(moduleId: AbstractModuleId, moduleRegistry: ModuleRegistry, minify: boolean | undefined, runtimeEnvironment: RuntimeEnvironment, runtimeParams: RuntimeParams | undefined, { bundleConfig, amdLoader }: ProviderAppConfig, bundleConfigOverrides?: BundleConfigOverrides): Promise<BundleDefinition>;
2
+ export declare function amdBundler(moduleId: AbstractModuleId, moduleRegistry: ModuleRegistry, minify: boolean | undefined, runtimeEnvironment: RuntimeEnvironment, runtimeParams: RuntimeParams | undefined, { bundleConfig }: ProviderAppConfig, bundleConfigOverrides?: BundleConfigOverrides): Promise<BundleDefinition>;
3
3
  //# sourceMappingURL=amd-common.d.ts.map
@@ -20,7 +20,7 @@ async function bundle(id, moduleGraphs, minify = false) {
20
20
  });
21
21
  return output[0].code;
22
22
  }
23
- export async function amdBundler(moduleId, moduleRegistry, minify = false, runtimeEnvironment, runtimeParams = {}, { bundleConfig, amdLoader }, bundleConfigOverrides) {
23
+ export async function amdBundler(moduleId, moduleRegistry, minify = false, runtimeEnvironment, runtimeParams = {}, { bundleConfig }, bundleConfigOverrides) {
24
24
  const { exclude, external = {} } = overrideBundleConfig(bundleConfig, bundleConfigOverrides);
25
25
  const externalsArray = Object.keys(external);
26
26
  const requiredImports = new Map();
@@ -34,7 +34,7 @@ export async function amdBundler(moduleId, moduleRegistry, minify = false, runti
34
34
  includeId: (moduleRef) => {
35
35
  // Do not bundle externals, including the loader module, which is auto bundled
36
36
  // with the shim + loader combo
37
- if (externalsArray.includes(moduleRef.specifier) || moduleRef.specifier === amdLoader) {
37
+ if (externalsArray.includes(moduleRef.specifier)) {
38
38
  // Do not include externals in the required imports but also return false to indicate it should not be in the bundle
39
39
  return false;
40
40
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0-alpha.18",
7
+ "version": "0.9.0-alpha.19",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -45,13 +45,13 @@
45
45
  "build/**/*.d.ts"
46
46
  ],
47
47
  "dependencies": {
48
- "@lwrjs/shared-utils": "0.9.0-alpha.18",
48
+ "@lwrjs/shared-utils": "0.9.0-alpha.19",
49
49
  "@rollup/plugin-replace": "^2.4.2",
50
50
  "rollup": "~2.45.2",
51
51
  "rollup-plugin-terser": "^7.0.2"
52
52
  },
53
53
  "devDependencies": {
54
- "@lwrjs/types": "0.9.0-alpha.18"
54
+ "@lwrjs/types": "0.9.0-alpha.19"
55
55
  },
56
56
  "optionalDependencies": {
57
57
  "esbuild": "^0.9.7"
@@ -63,5 +63,5 @@
63
63
  "node": "14.19.1",
64
64
  "yarn": "1.22.19"
65
65
  },
66
- "gitHead": "0d612ec0c74c679ce422f7bbae9fae14134f7d9f"
66
+ "gitHead": "65623ff6f03a217321d7d342df391fb05c90eb19"
67
67
  }