[babel 8] Do not skip requeued paths (#13291)
This commit is contained in:
@@ -251,13 +251,11 @@ export function setKey(this: NodePath, key) {
|
||||
export function requeue(this: NodePath, pathToQueue = this) {
|
||||
if (pathToQueue.removed) return;
|
||||
|
||||
// TODO: Uncomment in Babel 8. If a path is skipped, and then replaced with a
|
||||
// If a path is skipped, and then replaced with a
|
||||
// new one, the new one shouldn't probably be skipped.
|
||||
// Note that this currently causes an infinite loop because of
|
||||
// packages/babel-plugin-transform-block-scoping/src/tdz.js#L52-L59
|
||||
// (b5b8055cc00756f94bf71deb45f288738520ee3c)
|
||||
//
|
||||
// pathToQueue.shouldSkip = false;
|
||||
if (process.env.BABEL_8_BREAKING) {
|
||||
pathToQueue.shouldSkip = false;
|
||||
}
|
||||
|
||||
// TODO(loganfsmyth): This should be switched back to queue in parent contexts
|
||||
// automatically once #2892 and #4135 have been resolved. See #4140.
|
||||
|
||||
Reference in New Issue
Block a user