Skip to content

Conversation

@richardheng-okta
Copy link

Currently, the plugin will throw an error with an unnamed import:

import './fixtures/example.py';

This PR addresses the issue by transforming those expressions to string literals.

plugin/index.js Outdated
}
]
});
var content = BabelInlineImportHelper.getContents(givenPath, reference);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any reason to go for var instead of const or let?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point! I have updated to use const for the variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants