Set the proper parents for new node paths - fixes T2763

This commit is contained in:
Logan Smyth 2015-12-05 15:57:37 -08:00
parent 412c65deb3
commit f37acd293c
4 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1 @@
export * from 'mod';

View File

@ -0,0 +1,23 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _mod = require('mod');
var _loop = function (_key2) {
if (_key2 === "default") return 'continue';
Object.defineProperty(exports, _key2, {
enumerable: true,
get: function () {
return _mod[_key2];
}
});
};
for (var _key2 in _mod) {
var _ret = _loop(_key2);
if (_ret === 'continue') continue;
}

View File

@ -0,0 +1,6 @@
{
"plugins": [
"transform-es2015-block-scoping",
"transform-es2015-modules-commonjs"
]
}

View File

@ -49,8 +49,8 @@ export function _containerInsert(from, nodes) {
paths.push(path);
} else {
paths.push(NodePath.get({
parentPath: this,
parent: node,
parentPath: this.parentPath,
parent: this.parent,
container: this.container,
listKey: this.listKey,
key: to