@marko/vite 2.3.6 → 2.3.7
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.js +12 -0
- package/dist/index.mjs +12 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -227,6 +227,18 @@ function markoPlugin(opts = {}) {
|
|
|
227
227
|
}
|
|
228
228
|
return resolved;
|
|
229
229
|
}
|
|
230
|
+
if (importer) {
|
|
231
|
+
const importerQuery = getMarkoQuery(importer);
|
|
232
|
+
if (importerQuery) {
|
|
233
|
+
importer = importer.slice(0, -importerQuery.length);
|
|
234
|
+
if (importee[0] === ".") {
|
|
235
|
+
const resolved = import_path.default.resolve(importer, "..", importee);
|
|
236
|
+
if (resolved === importer)
|
|
237
|
+
return resolved;
|
|
238
|
+
}
|
|
239
|
+
return this.resolve(importee, importer, resolveOpts);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
230
242
|
return null;
|
|
231
243
|
},
|
|
232
244
|
async load(id) {
|
package/dist/index.mjs
CHANGED
|
@@ -210,6 +210,18 @@ function markoPlugin(opts = {}) {
|
|
|
210
210
|
}
|
|
211
211
|
return resolved;
|
|
212
212
|
}
|
|
213
|
+
if (importer) {
|
|
214
|
+
const importerQuery = getMarkoQuery(importer);
|
|
215
|
+
if (importerQuery) {
|
|
216
|
+
importer = importer.slice(0, -importerQuery.length);
|
|
217
|
+
if (importee[0] === ".") {
|
|
218
|
+
const resolved = path.resolve(importer, "..", importee);
|
|
219
|
+
if (resolved === importer)
|
|
220
|
+
return resolved;
|
|
221
|
+
}
|
|
222
|
+
return this.resolve(importee, importer, resolveOpts);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
213
225
|
return null;
|
|
214
226
|
},
|
|
215
227
|
async load(id) {
|