@lwrjs/module-bundler 0.13.0-alpha.8 → 0.13.0-alpha.9
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.
|
@@ -93,7 +93,7 @@ async function bundle(id, moduleGraphs, minify = false, unVersionedAliases = fal
|
|
|
93
93
|
async function getBundleCode(rootModule, moduleGraphs, includedModules, bundleGroupsIncludedModules, dynamicImports, minify, unVersionedAliases, includeId, moduleRegistry, runtimeEnvironment, runtimeParams, visitedSpecifiers) {
|
|
94
94
|
const modules = [rootModule, ...moduleGraphs.graphs[0].static];
|
|
95
95
|
const {moduleRecord} = await moduleRegistry.getModule((0, import_shared_utils.explodeSpecifier)(rootModule), runtimeParams);
|
|
96
|
-
if (moduleRecord.importMeta &&
|
|
96
|
+
if (moduleRecord.importMeta && !(0, import_shared_utils.isLocalDev)()) {
|
|
97
97
|
for (const specifier of modules) {
|
|
98
98
|
const linkedDefinition = moduleGraphs.linkedDefinitions[specifier];
|
|
99
99
|
const imports = linkedDefinition?.linkedModuleRecord.imports || [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphDepth, createAmdAlias, explodeSpecifier, getModuleGraphs, getSpecifier, getGroupName, isGroupie, getCacheKeyFromJson, VERSION_NOT_PROVIDED, isExternalSpecifier, PROTOCOL_FILE, } from '@lwrjs/shared-utils';
|
|
1
|
+
import { GraphDepth, createAmdAlias, explodeSpecifier, getModuleGraphs, getSpecifier, getGroupName, isGroupie, getCacheKeyFromJson, VERSION_NOT_PROVIDED, isExternalSpecifier, PROTOCOL_FILE, isLocalDev, } from '@lwrjs/shared-utils';
|
|
2
2
|
import { rollup } from 'rollup';
|
|
3
3
|
import replace from '@rollup/plugin-replace';
|
|
4
4
|
import { BundleSpan, getTracer } from '@lwrjs/instrumentation';
|
|
@@ -81,7 +81,7 @@ async function getBundleCode(rootModule, moduleGraphs, includedModules, bundleGr
|
|
|
81
81
|
const { moduleRecord } = await moduleRegistry.getModule(explodeSpecifier(rootModule), runtimeParams);
|
|
82
82
|
// add static imports from the LinkedModuleDefinitions added during module linking
|
|
83
83
|
// they're not in the ModuleGraph imports b/c those are based on raw module source
|
|
84
|
-
if (moduleRecord.importMeta &&
|
|
84
|
+
if (moduleRecord.importMeta && !isLocalDev()) {
|
|
85
85
|
// the only use case for this is "lwr/environment", so skip the logic when it's not needed
|
|
86
86
|
for (const specifier of modules) {
|
|
87
87
|
const linkedDefinition = moduleGraphs.linkedDefinitions[specifier];
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.13.0-alpha.
|
|
7
|
+
"version": "0.13.0-alpha.9",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"build/**/*.d.ts"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@lwrjs/diagnostics": "0.13.0-alpha.
|
|
51
|
-
"@lwrjs/instrumentation": "0.13.0-alpha.
|
|
52
|
-
"@lwrjs/shared-utils": "0.13.0-alpha.
|
|
50
|
+
"@lwrjs/diagnostics": "0.13.0-alpha.9",
|
|
51
|
+
"@lwrjs/instrumentation": "0.13.0-alpha.9",
|
|
52
|
+
"@lwrjs/shared-utils": "0.13.0-alpha.9",
|
|
53
53
|
"@rollup/plugin-replace": "^5.0.5",
|
|
54
54
|
"rollup": "^2.78.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@lwrjs/types": "0.13.0-alpha.
|
|
57
|
+
"@lwrjs/types": "0.13.0-alpha.9",
|
|
58
58
|
"jest": "^26.6.3",
|
|
59
59
|
"ts-jest": "^26.5.6"
|
|
60
60
|
},
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"volta": {
|
|
71
71
|
"extends": "../../../package.json"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "a2a9e1dbf39a7b04c7a43433e004895b6f4c51a3"
|
|
74
74
|
}
|