Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add transformation for element-ui #84

Merged
merged 1 commit into from
Jul 21, 2021
Merged

Conversation

wangsongc
Copy link

Add transformation for element-plus

  • upgrade the dependency from element-ui to element-plus.
  • modify Import.

if (importNode.type === 'ImportSpecifier') {
newSpecifier.push(
j.importSpecifier(
j.identifier('El' + importNode.local?.name),

Choose a reason for hiding this comment

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

i think before adding 'El' to the header of the component Name you need to determin whether or not the component name starts with 'El'

@ygj6 ygj6 merged commit 469e13d into originjs:dev Jul 21, 2021
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.

3 participants