olovaplugin 1.0.10 → 1.0.11

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.
@@ -91,6 +91,11 @@ function configPlugin() {
91
91
  return {
92
92
  appType: "custom",
93
93
  cacheDir: "./.olova/cache",
94
+ // Exclude olova from pre-bundling because it imports virtual:olova-routes
95
+ // which is only resolved at runtime by the routerPlugin
96
+ optimizeDeps: {
97
+ exclude: ["olova", "olova/Router", "olova/Link", "olova/client", "olova/server", "olova/useParams", "olova/usePathname", "olova/useSearchParams"]
98
+ },
94
99
  build: {
95
100
  outDir: "./.olova/dist",
96
101
  sourcemap: false,
@@ -31,6 +31,11 @@ function configPlugin() {
31
31
  return {
32
32
  appType: "custom",
33
33
  cacheDir: "./.olova/cache",
34
+ // Exclude olova from pre-bundling because it imports virtual:olova-routes
35
+ // which is only resolved at runtime by the routerPlugin
36
+ optimizeDeps: {
37
+ exclude: ["olova", "olova/Router", "olova/Link", "olova/client", "olova/server", "olova/useParams", "olova/usePathname", "olova/useSearchParams"]
38
+ },
34
39
  build: {
35
40
  outDir: "./.olova/dist",
36
41
  sourcemap: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "olovaplugin",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Vite plugins for Olova framework",
5
5
  "type": "module",
6
6
  "main": "dist/olova-plugins.cjs",