@jsenv/core 27.0.0-alpha.33 → 27.0.0-alpha.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "27.0.0-alpha.33",
3
+ "version": "27.0.0-alpha.34",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -45,7 +45,7 @@ export const startBuildServer = async ({
45
45
  rootDirectoryUrl,
46
46
  buildDirectoryUrl,
47
47
  buildCommand,
48
- mainBuildFile = "/index.html",
48
+ mainBuildFileUrl = "/index.html",
49
49
  watchedFilePatterns,
50
50
  cooldownBetweenFileEvents,
51
51
  autorestart,
@@ -145,10 +145,10 @@ export const startBuildServer = async ({
145
145
  request.ressource,
146
146
  request.origin,
147
147
  ).searchParams.has("v")
148
- if (mainBuildFile && request.ressource === "/") {
148
+ if (mainBuildFileUrl && request.ressource === "/") {
149
149
  request = {
150
150
  ...request,
151
- ressource: `/${mainBuildFile}`,
151
+ ressource: mainBuildFileUrl,
152
152
  }
153
153
  }
154
154
  return fetchFileSystem(