@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 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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marko/vite",
3
3
  "description": "A Marko plugin for Vite",
4
- "version": "2.3.6",
4
+ "version": "2.3.7",
5
5
  "author": "Dylan Piercey <dpiercey@ebay.com>",
6
6
  "bugs": "https://github.com/marko-js/vite/issues",
7
7
  "dependencies": {