Set the proper parents for new node paths - fixes T2763
This commit is contained in:
parent
412c65deb3
commit
f37acd293c
@ -0,0 +1 @@
|
||||
export * from 'mod';
|
||||
@ -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;
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"transform-es2015-block-scoping",
|
||||
"transform-es2015-modules-commonjs"
|
||||
]
|
||||
}
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user