Skip to content

Commit

Permalink
fix: incorrect line numbers
Browse files Browse the repository at this point in the history
Still don't know what happened here, the esbuild's example plugin --
https://esbuild.github.io/plugins/#svelte-plugin
does have `start.line - 1` to get the lineText, but that was
wrong in my current test.

Maybe related:
EMH333/esbuild-svelte#83
  • Loading branch information
hyrious committed Apr 21, 2022
1 parent 7639ea6 commit 55ccbf5
Show file tree
Hide file tree
Showing 5 changed files with 400 additions and 258 deletions.
5 changes: 5 additions & 0 deletions e2e-test/src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<script lang="ts">
import External from "./External.svelte";
let count: number = 1;
let b = 0; b === -0; // test warning
</script>

<button on:click={() => count++}>count: {count}</button>
<External />
<p>🚧</p>

<style>
h2 {
/* test warning */
}
button {
color: red;
}
Expand Down

0 comments on commit 55ccbf5

Please sign in to comment.