@marko/translator-default 5.32.7 → 5.32.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {
@@ -12,6 +12,7 @@ var _keyManager = require("./key-manager");
12
12
  var _vdomOutWrite = _interopRequireDefault(require("./vdom-out-write"));
13
13
 
14
14
  const skipDirectives = new Set([
15
+ "key",
15
16
  "no-update",
16
17
  "no-update-if",
17
18
  "no-update-body",
@@ -39,7 +40,6 @@ const mergeStaticCreateVisitor = {
39
40
  );
40
41
  },
41
42
  MarkoTag(path, state) {
42
- (0, _keyManager.getKeyManager)(path).resolveKey(path);
43
43
  state.currentRoot = _compiler.types.callExpression(
44
44
  _compiler.types.memberExpression(state.currentRoot, _compiler.types.identifier("e")),
45
45
  getConstElementArgs(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.9",
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.8",
38
+ "marko": "^5.33.10"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@marko/compiler": "^5.16.1",