vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

期望产出es5的产出,然而build后的产物中有两个const #7463

Open pagnkelly opened 2 months ago

pagnkelly commented 2 months ago

Version

5.0.8

Reproduction link

https://baidu.com/

Environment info

node20
mac

Steps to reproduce

具体是这两行 const exports = /#PURE/(0,exportHelper/ default /.A)(HelloWorldvue_type_script_lang_js, [['render',HelloWorldvue_type_template_id_b9167eee_scoped_true_render],['__scopeId',"data-v-b9167eee"]])

const Appexports = /#PURE/(0,exportHelper/ default /.A)(Appvue_type_script_lang_js, [['render',render]])

有关export组件或者app的内容const都没有转译,其他的const却转译了

What is expected?

期望没有const

What is actually happening?

实际上有俩const没有被babel转译