Create File class for babel helpers (#10575)
* add test * fix: pass File to helper traverser * pass babel.File to helpers.ensure
This commit is contained in:
@@ -174,7 +174,7 @@ export default class File {
|
||||
}
|
||||
|
||||
// make sure that the helper exists
|
||||
helpers.ensure(name);
|
||||
helpers.ensure(name, File);
|
||||
|
||||
const uid = (this.declarations[name] = this.scope.generateUidIdentifier(
|
||||
name,
|
||||
|
||||
Reference in New Issue
Block a user