@7365admin1/layer-common 4.97.1-staging.618 → 4.97.1-staging.619

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.
Files changed (2) hide show
  1. package/nuxt.config.ts +9 -0
  2. package/package.json +1 -1
package/nuxt.config.ts CHANGED
@@ -109,6 +109,15 @@ export default defineNuxtConfig({
109
109
  ],
110
110
 
111
111
  vite: {
112
+ // When this layer is `yarn link`ed into an app, its components resolve
113
+ // `vuetify` from the layer's own node_modules, so the page loads two
114
+ // Vuetify copies. If their versions drift (layer 3.12 vs app 3.11), the
115
+ // layer's VListItem can't read the app's Vuetify injections and crashes
116
+ // with "Cannot read properties of undefined (reading 'value')". Dedupe
117
+ // forces one copy, from the app. No effect when installed from npm.
118
+ resolve: {
119
+ dedupe: ["vuetify"],
120
+ },
112
121
  vue: {
113
122
  template: {
114
123
  transformAssetUrls,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "4.97.1-staging.618",
5
+ "version": "4.97.1-staging.619",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",