eddev 2.0.0-beta.16 → 2.0.0-beta.17

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.
@@ -27,7 +27,7 @@ export class ServerContext {
27
27
  }
28
28
  getOriginUrl(url) {
29
29
  const parsed = parseURL(url);
30
- const parsedOrigin = parseURL(env.origin);
30
+ const parsedOrigin = parseURL(this.origin);
31
31
  parsed.host = parsedOrigin.host;
32
32
  parsed.protocol = parsedOrigin.protocol;
33
33
  return stringifyParsedURL(parsed);
@@ -88,13 +88,14 @@ export function ssrPlugin() {
88
88
  ...config.legacy,
89
89
  proxySsrExternalModules: true,
90
90
  };
91
- // config.ssr = {
92
- // ...config.ssr,
93
- // noExternal: ["eddev", ...(config?.optimizeDeps?.noExternal ?? [])],
94
- // // optimizeDeps: {
95
- // // include: ["eddev", "vinxi"],
96
- // // },
97
- // }
91
+ config.ssr = {
92
+ ...config.ssr,
93
+ // @ts-ignore
94
+ noExternal: ["eddev", "vinxi", ...(config?.optimizeDeps?.noExternal ?? [])],
95
+ optimizeDeps: {
96
+ exclude: ["eddev", "vinxi"],
97
+ },
98
+ };
98
99
  config.optimizeDeps = {
99
100
  ...config.optimizeDeps,
100
101
  include: [
@@ -106,7 +107,7 @@ export function ssrPlugin() {
106
107
  "react-dom/client",
107
108
  ...(config?.optimizeDeps?.include ?? []),
108
109
  ],
109
- exclude: ["eddev", ...(config?.optimizeDeps?.exclude ?? [])],
110
+ exclude: ["eddev", "vinxi", ...(config?.optimizeDeps?.exclude ?? [])],
110
111
  };
111
112
  return config;
112
113
  },
@@ -134,7 +135,7 @@ function buildStatusPlugin(console) {
134
135
  };
135
136
  }
136
137
  export function corePlugins(args) {
137
- return [tsconfigPaths(), reactPlugin(), args.serverless && ssrPlugin(), envPlugin(args)].flat();
138
+ return [args.serverless && ssrPlugin(), envPlugin(args), tsconfigPaths(), reactPlugin()].flat();
138
139
  }
139
140
  export function getViteConfig(args) {
140
141
  const console = args.console;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eddev",
3
- "version": "2.0.0-beta.16",
3
+ "version": "2.0.0-beta.17",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",