Subscribe on changes!

Imports in normal `<script>` are exposed to template when using alongside `<script setup>`

avatar
Feb 15th 2021

Version

3.0.5

Reproduction link

https://repl.it/@egoist/SpecificEnergeticPackages#src/App.vue

Steps to reproduce

See the link

What is expected?

Do not expose imports in normal <script>

What is actually happening?

imports in normal <script> are also exposed. which is unexpected.


bug

avatar
Feb 16th 2021

I'm not sure if this is intentional, but it seems reasonable that imports in normal scripts are not exposed to templates

avatar
Feb 16th 2021

👌 Just took a look at the code, it seems to be an intentional design

avatar
Nov 19th 2021

Raise a new PR to fix this.