@marko/translator-default 5.32.6 → 5.32.8

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.
@@ -31,7 +31,9 @@ const kEntryState = Symbol();var _default =
31
31
  visitedFiles.add(resolved);
32
32
  const file = (0, _babelUtils.loadFileForImport)(entryFile, resolved);
33
33
  if (file) {
34
- entryBuilder.visit(file, entryFile, visitChild);
34
+ entryBuilder.visit(file, entryFile, (id) =>
35
+ visitChild(resolveRelativeToEntry(entryFile, file, id))
36
+ );
35
37
  }
36
38
  }
37
39
  });
@@ -219,7 +221,10 @@ function addImport(seenImports, body, resolved) {
219
221
  function resolveRelativeToEntry(entryFile, file, req) {
220
222
  return file === entryFile ?
221
223
  (0, _babelUtils.resolveRelativePath)(file, req) :
222
- (0, _babelUtils.resolveRelativePath)(entryFile, _path.default.join(file.opts.filename, "..", req));
224
+ (0, _babelUtils.resolveRelativePath)(
225
+ entryFile,
226
+ req[0] === "." ? _path.default.join(file.opts.filename, "..", req) : req
227
+ );
223
228
  }
224
229
 
225
230
  function importPath(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/translator-default",
3
- "version": "5.32.6",
3
+ "version": "5.32.8",
4
4
  "description": "Translates Marko templates to the default Marko runtime.",
5
5
  "keywords": [
6
6
  "babel",
@@ -34,8 +34,8 @@
34
34
  "self-closing-tags": "^1.0.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@marko/compiler": "^5.35.5",
38
- "marko": "^5.33.6"
37
+ "@marko/compiler": "^5.35.7",
38
+ "marko": "^5.33.8"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@marko/compiler": "^5.16.1",