Skip to content

Commit 314771e

Browse files
committed
fix: Fix import package issue.
1 parent 2f7f275 commit 314771e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transform.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function BabelTransform(input: string) {
1111
visitor: {
1212
// https://babeljs.io/docs/en/babel-types#importspecifier
1313
ImportSpecifier(local: any) {
14-
if (local.parent && local.parent.source && local.parent.source.extra.rawValue === 'uiw') {
14+
if (local.parent && local.parent.source && local.parent.source.extra.rawValue) {
1515
if (local.parent.specifiers) {
1616
local.parent.specifiers.forEach((item: any) => {
1717
specifiers.push(item.imported.name);

0 commit comments

Comments
 (0)