v1.0 with SW PWA enabled
This commit is contained in:
9
frontend/node_modules/@babel/traverse/lib/path/replacement.js
generated
vendored
9
frontend/node_modules/@babel/traverse/lib/path/replacement.js
generated
vendored
@ -50,9 +50,9 @@ const {
|
||||
function replaceWithMultiple(nodes) {
|
||||
var _getCachedPaths;
|
||||
_context.resync.call(this);
|
||||
nodes = _modification._verifyNodeList.call(this, nodes);
|
||||
inheritLeadingComments(nodes[0], this.node);
|
||||
inheritTrailingComments(nodes[nodes.length - 1], this.node);
|
||||
const verifiedNodes = _modification._verifyNodeList.call(this, nodes);
|
||||
inheritLeadingComments(verifiedNodes[0], this.node);
|
||||
inheritTrailingComments(verifiedNodes[verifiedNodes.length - 1], this.node);
|
||||
(_getCachedPaths = (0, _cache.getCachedPaths)(this)) == null || _getCachedPaths.delete(this.node);
|
||||
this.node = this.container[this.key] = null;
|
||||
const paths = this.insertAfter(nodes);
|
||||
@ -142,7 +142,8 @@ function _replaceWith(node) {
|
||||
}
|
||||
this.debug(`Replace with ${node == null ? void 0 : node.type}`);
|
||||
(_getCachedPaths2 = (0, _cache.getCachedPaths)(this)) == null || _getCachedPaths2.set(node, this).delete(this.node);
|
||||
this.node = this.container[this.key] = node;
|
||||
this.node = node;
|
||||
this.container[this.key] = node;
|
||||
}
|
||||
function replaceExpressionWithStatements(nodes) {
|
||||
_context.resync.call(this);
|
||||
|
||||
Reference in New Issue
Block a user