Load jsx-runtime after existing imports (#12546)

Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
This commit is contained in:
Nicolò Ribaudo
2021-01-10 16:23:22 +01:00
committed by GitHub
parent 6c9a481e83
commit 4f83a09dd8
30 changed files with 207 additions and 46 deletions

View File

@@ -638,6 +638,7 @@ You can set \`throwIfNamespace: false\` to bypass this warning.`,
reference = addNamed(path, importName, actualSource, {
importedInterop: "uncompiled",
importPosition: "after",
});
set(pass, `imports/${importName}`, reference);