@stencil/dev-server 5.0.0-alpha.5 → 5.0.0-alpha.6
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.
- package/dist/index.mjs +2 -2
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -584,7 +584,7 @@ async function setupHydrateApp(devServerConfig, serverCtx) {
|
|
|
584
584
|
const buildResults = await serverCtx.getBuildResults();
|
|
585
585
|
const diagnostics = [];
|
|
586
586
|
if (serverCtx.prerenderConfig == null && isString(devServerConfig.prerenderConfig)) try {
|
|
587
|
-
const prerenderConfigResults = (await import("@stencil/core/compiler")).nodeRequire(devServerConfig.prerenderConfig);
|
|
587
|
+
const prerenderConfigResults = await (await import("@stencil/core/compiler")).nodeRequire(devServerConfig.prerenderConfig);
|
|
588
588
|
diagnostics.push(...prerenderConfigResults.diagnostics);
|
|
589
589
|
if (prerenderConfigResults.module?.config) serverCtx.prerenderConfig = prerenderConfigResults.module.config;
|
|
590
590
|
} catch (e) {
|
|
@@ -884,7 +884,7 @@ async function serveDevClient(devServerConfig, serverCtx, req, res) {
|
|
|
884
884
|
if (isDevServerClient(req.pathname)) return serveDevClientScript(devServerConfig, serverCtx, req, res);
|
|
885
885
|
if (isInitialDevServerLoad(req.pathname)) req.filePath = path.join(devServerConfig.devServerDir, "templates", "initial-load.html");
|
|
886
886
|
else {
|
|
887
|
-
const subPath = req.pathname.replace(
|
|
887
|
+
const subPath = req.pathname.replace("/~dev-server/", "");
|
|
888
888
|
if (subPath.startsWith("client/")) req.filePath = path.join(devServerConfig.devServerDir, subPath);
|
|
889
889
|
else req.filePath = path.join(devServerConfig.devServerDir, "static", subPath);
|
|
890
890
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/dev-server",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.6",
|
|
4
4
|
"description": "Development server for Stencil with DOM-based HMR",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dev server",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"launch-editor": "^2.
|
|
38
|
+
"launch-editor": "^2.0.0",
|
|
39
39
|
"open": "^11.0.0",
|
|
40
40
|
"ws": "^8.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tsdown/css": "
|
|
43
|
+
"@tsdown/css": ">=0.21.0 <1.0.0",
|
|
44
44
|
"@types/ws": "^8.0.0",
|
|
45
|
-
"tsdown": "
|
|
46
|
-
"typescript": ">4.0.0",
|
|
47
|
-
"vitest": "^4.1.
|
|
48
|
-
"vitest-environment-stencil": "^1.
|
|
49
|
-
"@stencil/core": "5.0.0-alpha.
|
|
45
|
+
"tsdown": ">=0.21.0 <1.0.0",
|
|
46
|
+
"typescript": ">4.0.0 <7.0.0",
|
|
47
|
+
"vitest": "^4.1.7",
|
|
48
|
+
"vitest-environment-stencil": "^1.12.1",
|
|
49
|
+
"@stencil/core": "5.0.0-alpha.6"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@stencil/core": "^5.0.0-0"
|