@solidjs/start 2.0.0-beta.6 → 2.0.0-beta.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @solidjs/start
2
2
 
3
+ ## 2.0.0-beta.7
4
+
5
+ ### Patch Changes
6
+
7
+ - d2f0621: Support JavaScript projects whose app and client/server entries use `.jsx`.
8
+
3
9
  ## 2.0.0-beta.6
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
1
  import { type PluginOption } from "vite";
2
- export declare function devServer(): Array<PluginOption>;
2
+ export declare function devServer(serverEntryPath: string): Array<PluginOption>;
3
3
  export declare function resolvePreviewServerEntry(root: string): string;
4
4
  export declare function isHtmlResponse(response: Response): boolean;
@@ -12,7 +12,7 @@ import { pathToFileURL } from "node:url";
12
12
  import { NodeRequest, sendNodeResponse } from "srvx/node";
13
13
  import { isRunnableDevEnvironment, } from "vite";
14
14
  import { VITE_ENVIRONMENTS } from "./constants.js";
15
- export function devServer() {
15
+ export function devServer(serverEntryPath) {
16
16
  return [
17
17
  {
18
18
  name: "solid-start-dev-server",
@@ -54,7 +54,7 @@ export function devServer() {
54
54
  }
55
55
  const webReq = new NodeRequest({ req, res });
56
56
  try {
57
- const serverEntry = await serverEnv.runner.import("./src/entry-server.tsx");
57
+ const serverEntry = await serverEnv.runner.import(serverEntryPath);
58
58
  const webRes = await serverEntry.default.fetch(webReq);
59
59
  return sendNodeResponse(res, webRes);
60
60
  }
@@ -44,8 +44,8 @@ export function solidStart(options) {
44
44
  serverFunctionsPlugin({
45
45
  manifest: VIRTUAL_MODULES.serverFnManifest,
46
46
  runtime: {
47
- server: '@solidjs/start/fns/server',
48
- client: '@solidjs/start/fns/client',
47
+ server: "@solidjs/start/fns/server",
48
+ client: "@solidjs/start/fns/client",
49
49
  },
50
50
  filter: options?.serverFunctions?.filter,
51
51
  }),
@@ -110,7 +110,7 @@ export function solidStart(options) {
110
110
  manifest: true,
111
111
  copyPublicDir: false,
112
112
  rollupOptions: {
113
- input: "~/entry-server.tsx",
113
+ input: handlers.server,
114
114
  },
115
115
  outDir: "dist/server",
116
116
  commonjsOptions: {
@@ -214,7 +214,7 @@ export function solidStart(options) {
214
214
  globalThis.START_CLIENT_OUT_DIR = options.dir;
215
215
  },
216
216
  },
217
- devServer(),
217
+ devServer(handlers.server),
218
218
  solid({
219
219
  ...start.solid,
220
220
  ssr: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "2.0.0-beta.6",
3
+ "version": "2.0.0-beta.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",