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

(fix) make organize imports work with module script #454

Merged

Conversation

dummdidumm
Copy link
Member

@dummdidumm dummdidumm commented Aug 14, 2020

#221

<script context="module">
  import {c} from './c';
</script>

<script lang="ts">
  import B from './B';
  import A from './A';
</script>

<A>{c}</A>

---->

<script context="module">
  import A from './A';
  import { c } from './c';
</script>

<script lang="ts">

</script>

<A>{c}</A>

sveltejs#221
```
<script context="module">
  import {c} from './c';
</script>

<script lang="ts">
  import B from './B';
  import A from './A';
</script>

<A>{c}</A>
```

---->

```
<script context="module">
  import A from './A';
  import { c } from './c';
  // do whatever
</script>

<script lang="ts">

</script>

<A>{c}</A>
```
@dummdidumm dummdidumm changed the title (fix) make organize imports with module script (fix) make organize imports work with module script Aug 14, 2020
@dummdidumm dummdidumm merged commit b50eae1 into sveltejs:master Aug 14, 2020
@dummdidumm dummdidumm deleted the organize-imports-module-script branch August 14, 2020 13:53
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