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

不会触发TreeShaking #1

Open
xlearns opened this issue Mar 31, 2022 · 0 comments
Open

不会触发TreeShaking #1

xlearns opened this issue Mar 31, 2022 · 0 comments

Comments

@xlearns
Copy link
Owner

xlearns commented Mar 31, 2022

const  a = 1
const  b = 2
function fn(){
  console.log('hello world')
}

let plugin = {
  a,b,fn
 }
//https://www.jb51.net/article/162079.htm

export default plugin

// 原因是import {a} form 'xx' 访问的是xx.default.a 由于defualt是undefine所有找不到
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

No branches or pull requests

1 participant