@pinegrow/vite-plugin 3.0.0-beta.43 → 3.0.0-beta.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/dist/index.cjs +1 -1
- package/dist/vue-plugin.js +18 -3
- package/package.json +1 -1
package/dist/vue-plugin.js
CHANGED
|
@@ -115,12 +115,26 @@ export function usePinegrow() {
|
|
|
115
115
|
if ((key !== null && key !== undefined) || (vnode.key !== null && vnode.key !== undefined)) {
|
|
116
116
|
key = key || vnode.key
|
|
117
117
|
}
|
|
118
|
-
localFile =
|
|
119
|
-
localFile || (vnode.type.__file && !vnode.type.__file.includes('node_modules') && vnode.type.__file)
|
|
118
|
+
localFile = localFile || vnode.type.__file
|
|
120
119
|
|
|
121
120
|
let isRootFragment = false
|
|
122
121
|
let isFragment = el.nodeType !== 1
|
|
123
|
-
let firstEl,
|
|
122
|
+
let firstEl,
|
|
123
|
+
lastEl,
|
|
124
|
+
isIsland = false
|
|
125
|
+
|
|
126
|
+
// May be an iles Island that wraps components with client directives
|
|
127
|
+
if (localFile) {
|
|
128
|
+
if (localFile.includes('node_modules/iles') && localFile.includes('Island.vue')) {
|
|
129
|
+
// Retain localFiles of iles island to apply to child elements
|
|
130
|
+
isIsland = true
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (localFile.includes('node_modules')) {
|
|
134
|
+
// Ignore SFCs from node_modules
|
|
135
|
+
localFile = null
|
|
136
|
+
}
|
|
137
|
+
}
|
|
124
138
|
|
|
125
139
|
// // Computed props anyway filters out unmounted ones, and we use the local components unmounted hooks to cleanup unmounted nodes. Using the unmounted hook seems to be out of sync when el is reused but instance is remounted.
|
|
126
140
|
// if (hook === 'unmounted') {
|
|
@@ -228,6 +242,7 @@ export function usePinegrow() {
|
|
|
228
242
|
pgId,
|
|
229
243
|
key,
|
|
230
244
|
localFile,
|
|
245
|
+
isIsland,
|
|
231
246
|
})
|
|
232
247
|
}
|
|
233
248
|
|