vuejs / vue-cli

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

wrong realEntry when some export #4875

Open lefreet opened 4 years ago

lefreet commented 4 years ago

Version

4.0.0

Reproduction link

https://github.com/vuejs/vue-cli

Environment info

osx 10.13
chrome v76

Steps to reproduce

when i try to build a umd module vue-cli-service build --target lib --name test --dest public/test src/views/test/index.js --formats umd

// index.js
export { default } from './test.vue'

i see here

/\b(export\s default|export\s{[^}] as\s default)\b/

and get a empty module,it have a more complete validator?

and then i try

export { default } from './test.vue'
// import Test from './test.vue'
// export default Test

it run fine, haha

What is expected?

get module normal

What is actually happening?

get a empty Symbol

vue-bot commented 4 years ago

Hello! This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label not stale to keep this issue open.)

Thanks for being a part of the Vue community! 💪💚️