Skip to content

fix: jsx column is 1 less #11

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

Merged
merged 1 commit into from
Sep 23, 2023
Merged

fix: jsx column is 1 less #11

merged 1 commit into from
Sep 23, 2023

Conversation

zjxxxxxxxxx
Copy link
Collaborator

Let's say you have a component like this

<!-- src/App.vue -->
<script lang="tsx">
  import { defineComponent } from 'vue';

  export default defineComponent({
    setup() {
      return <div>hello word</div>;
    },
  });
</script>

Now it compiles

<!-- src/App.vue -->
<script lang="tsx">
  import { defineComponent } from 'vue';

  export default defineComponent({
    setup() {
      return <div __source="/src/App.vue:7:13">hello word</div>;
    },
  });
</script>

Should be compiled to

<!-- src/App.vue -->
<script lang="tsx">
  import { defineComponent } from 'vue';

  export default defineComponent({
    setup() {
      return <div __source="/src/App.vue:7:14">hello word</div>;
    },
  });
</script>

@zjxxxxxxxxx zjxxxxxxxxx merged commit e92844a into main Sep 23, 2023
@zjxxxxxxxxx zjxxxxxxxxx deleted the column branch September 23, 2023 06:17
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.

1 participant