Last active
December 2, 2019 08:01
-
-
Save whs/f80492400b6a20ad13c21a1d8a9ed5b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const importSpecifier = path.scope.generateUidIdentifier('th') | |
const importDeclaration = this.t.importDeclaration( | |
[this.t.importDefaultSpecifier(importSpecifier)], | |
this.t.stringLiteral('lang/th/file.yaml?' + this.resourceQuery), | |
) | |
program.unshiftContainer('body', importDeclaration) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment