@marko/translator-default 5.32.7 → 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.
@@ -32,12 +32,7 @@ const kEntryState = Symbol();var _default =
32
32
  const file = (0, _babelUtils.loadFileForImport)(entryFile, resolved);
33
33
  if (file) {
34
34
  entryBuilder.visit(file, entryFile, (id) =>
35
- visitChild(
36
- (0, _babelUtils.resolveRelativePath)(
37
- entryFile,
38
- _path.default.join(file.opts.filename, "..", id)
39
- )
40
- )
35
+ visitChild(resolveRelativeToEntry(entryFile, file, id))
41
36
  );
42
37
  }
43
38
  }
@@ -226,7 +221,10 @@ function addImport(seenImports, body, resolved) {
226
221
  function resolveRelativeToEntry(entryFile, file, req) {
227
222
  return file === entryFile ?
228
223
  (0, _babelUtils.resolveRelativePath)(file, req) :
229
- (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
+ );
230
228
  }
231
229
 
232
230
  function importPath(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/translator-default",
3
- "version": "5.32.7",
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.6",
38
- "marko": "^5.33.7"
37
+ "@marko/compiler": "^5.35.7",
38
+ "marko": "^5.33.8"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@marko/compiler": "^5.16.1",