@lwrjs/tools 0.9.0-alpha.31 → 0.9.0-alpha.33
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.
|
@@ -30,14 +30,18 @@ var import_path = __toModule(require("path"));
|
|
|
30
30
|
var import_config = __toModule(require("@lwrjs/config"));
|
|
31
31
|
var import_modules = __toModule(require("@lwrjs/config/modules"));
|
|
32
32
|
var import_shared_utils = __toModule(require("@lwrjs/shared-utils"));
|
|
33
|
-
|
|
33
|
+
function getServices(t) {
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
36
|
+
var services = getServices([
|
|
34
37
|
"moduleProviders",
|
|
35
|
-
"
|
|
36
|
-
"assetTransformers",
|
|
38
|
+
"bundleProviders",
|
|
37
39
|
"viewProviders",
|
|
38
40
|
"viewTransformers",
|
|
39
|
-
"resourceProviders"
|
|
40
|
-
|
|
41
|
+
"resourceProviders",
|
|
42
|
+
"assetProviders",
|
|
43
|
+
"assetTransformers"
|
|
44
|
+
]);
|
|
41
45
|
function processServices(kind, entries, rootDir) {
|
|
42
46
|
const output = {
|
|
43
47
|
imports: [],
|
|
@@ -108,7 +112,8 @@ function buildLwrServer(config) {
|
|
|
108
112
|
}));
|
|
109
113
|
build.onLoad({filter: /.*/, namespace: "lwr-server-build"}, async (args) => {
|
|
110
114
|
const {appConfig, runtimeEnvironment, globalData} = await (0, import_config.loadConfig)(config, {
|
|
111
|
-
skipDirNormalization: true
|
|
115
|
+
skipDirNormalization: true,
|
|
116
|
+
useStaticProviders: true
|
|
112
117
|
});
|
|
113
118
|
const hooks = await (0, import_modules.loadHooks)(appConfig);
|
|
114
119
|
if (hooks.length) {
|
|
@@ -2,14 +2,18 @@ import path from 'path';
|
|
|
2
2
|
import { executeConfigHooks, loadConfig } from '@lwrjs/config';
|
|
3
3
|
import { loadHooks } from '@lwrjs/config/modules';
|
|
4
4
|
import { logger, normalizeDirectory } from '@lwrjs/shared-utils';
|
|
5
|
-
|
|
5
|
+
function getServices(t) {
|
|
6
|
+
return t;
|
|
7
|
+
}
|
|
8
|
+
const services = getServices([
|
|
6
9
|
'moduleProviders',
|
|
7
|
-
'
|
|
8
|
-
'assetTransformers',
|
|
10
|
+
'bundleProviders',
|
|
9
11
|
'viewProviders',
|
|
10
12
|
'viewTransformers',
|
|
11
13
|
'resourceProviders',
|
|
12
|
-
|
|
14
|
+
'assetProviders',
|
|
15
|
+
'assetTransformers',
|
|
16
|
+
]);
|
|
13
17
|
function processServices(kind, entries, rootDir) {
|
|
14
18
|
const output = {
|
|
15
19
|
imports: [],
|
|
@@ -103,6 +107,7 @@ export default function buildLwrServer(config) {
|
|
|
103
107
|
build.onLoad({ filter: /.*/, namespace: 'lwr-server-build' }, async (args) => {
|
|
104
108
|
const { appConfig, runtimeEnvironment, globalData } = await loadConfig(config, {
|
|
105
109
|
skipDirNormalization: true,
|
|
110
|
+
useStaticProviders: true,
|
|
106
111
|
});
|
|
107
112
|
// apply config hooks at build time
|
|
108
113
|
const hooks = await loadHooks(appConfig);
|
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.33",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"package.cjs"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lwrjs/core": "0.9.0-alpha.
|
|
35
|
+
"@lwrjs/core": "0.9.0-alpha.33",
|
|
36
36
|
"esbuild": "^0.17.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@lwrjs/types": "0.9.0-alpha.
|
|
39
|
+
"@lwrjs/types": "0.9.0-alpha.33"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"lwc": "2.x"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=16.0.0 <20"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "5700e9661fe6946d4b7b78c5ecd86348c08f0559"
|
|
48
48
|
}
|