@solidjs/start 2.0.0-beta.2 → 2.0.0-beta.3
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 +6 -0
- package/dist/config/index.js +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/config/index.js
CHANGED
|
@@ -132,7 +132,14 @@ export function solidStart(options) {
|
|
|
132
132
|
},
|
|
133
133
|
// Depending on the package manager and dependency structure Vite externalizes @solidjs/start
|
|
134
134
|
// This makes sure that @solidjs/start goes through the Vite build process
|
|
135
|
-
|
|
135
|
+
//
|
|
136
|
+
// h3 and cookie-es must be bundled as well: if they stay external, the server build
|
|
137
|
+
// emits bare imports that nitro later re-resolves from the project root, where package
|
|
138
|
+
// managers like yarn may have hoisted the older major versions required by nitropack
|
|
139
|
+
// and unstorage (h3 v1 / cookie-es v1) instead of the versions @solidjs/start needs
|
|
140
|
+
// (see https://github.com/solidjs/solid-start/issues/2101
|
|
141
|
+
// and https://github.com/solidjs/solid-start/issues/2178)
|
|
142
|
+
noExternal: ["@solidjs/start", "h3", "cookie-es"],
|
|
136
143
|
},
|
|
137
144
|
define: {
|
|
138
145
|
"import.meta.env.MANIFEST": `globalThis.MANIFEST`,
|