@panomc/theme-core 1.0.0-dev.44 → 1.0.0-dev.45
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 +1 -1
- package/src/kit/vite-config.js +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panomc/theme-core",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.45",
|
|
4
4
|
"description": "The Pano theme engine: hooks factories, plugin engine, headless page controllers, default views and the theme CLI. Themes depend on this package instead of forking vanilla-theme.",
|
|
5
5
|
"author": "PanoMC",
|
|
6
6
|
"license": "MIT",
|
package/src/kit/vite-config.js
CHANGED
|
@@ -166,7 +166,6 @@ export function createViteConfig(opts = {}) {
|
|
|
166
166
|
],
|
|
167
167
|
quietDeps: true,
|
|
168
168
|
silenceDeprecations: [
|
|
169
|
-
"mixed-decls",
|
|
170
169
|
"color-functions",
|
|
171
170
|
"global-builtin",
|
|
172
171
|
"import",
|
|
@@ -182,6 +181,19 @@ export function createViteConfig(opts = {}) {
|
|
|
182
181
|
"svelte",
|
|
183
182
|
...(opts.extraOptimizeExclude ?? []),
|
|
184
183
|
],
|
|
184
|
+
// When the engine is a real node_modules install (registry, not a
|
|
185
|
+
// file:/workspace link), vite's dependency scanner cannot resolve the
|
|
186
|
+
// engine's .svelte glob imports and aborts with a scary "Failed to run
|
|
187
|
+
// dependency scan" wall of errors. The scan is only a warm-up — skip
|
|
188
|
+
// it there; the `include` list above is still pre-bundled.
|
|
189
|
+
...(function () {
|
|
190
|
+
try {
|
|
191
|
+
const p = path.join(process.cwd(), "node_modules", "@panomc", "theme-core");
|
|
192
|
+
return fs.existsSync(p) && !fs.lstatSync(p).isSymbolicLink() ? { entries: [] } : {};
|
|
193
|
+
} catch {
|
|
194
|
+
return {};
|
|
195
|
+
}
|
|
196
|
+
})(),
|
|
185
197
|
},
|
|
186
198
|
server: {
|
|
187
199
|
proxy: {
|