mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
aace797941
## Summary - parse Svelte <script> attributes instead of broad substring checks - detect both module and context="module" scripts when creating partial JS sources - add unit and CLI coverage for module/instance scripts in both JS and TS ## Validation - mise x -- cargo test -p oxlint lint_svelte_ - mise x -- cargo test -p oxc_linter partial_loader::svelte ## AI usage disclosure This PR was prepared with AI assistance (Codex). I reviewed and take responsibility for the final changes. --------- Co-authored-by: Cameron <cameron.clark@hey.com>
10 lines
94 B
Svelte
10 lines
94 B
Svelte
<script context="module">
|
|
debugger;
|
|
</script>
|
|
|
|
<script>
|
|
debugger;
|
|
</script>
|
|
|
|
<h1>Hello</h1>
|