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

有关Object.defineProperties的问题 #24

Closed
gggin opened this issue Apr 19, 2016 · 5 comments
Closed

有关Object.defineProperties的问题 #24

gggin opened this issue Apr 19, 2016 · 5 comments

Comments

@gggin
Copy link

gggin commented Apr 19, 2016

怎么才能让babel6 的import不生成Object.defineProperties的代码?

我这边已经干掉了好些依赖 不想使用es5-shim等polyfill 有办法么?

@xcatliu
Copy link
Owner

xcatliu commented Apr 19, 2016

我也遇到过类似问题

可以看看这几个:
reduxjs/react-redux#133
reduxjs/react-redux#227
reduxjs/react-redux@a94ea6d

不过这是以前的 babel,不知道现在还是不是这样。

@gggin
Copy link
Author

gggin commented Apr 19, 2016

真牛比啊!你演然是传说!

@gggin gggin closed this as completed Apr 19, 2016
@xcatliu
Copy link
Owner

xcatliu commented Apr 19, 2016

@gggin 过奖啦!

@gggin
Copy link
Author

gggin commented Apr 20, 2016

https://github.com/reactjs/redux/blob/master/.babelrc

参考这个babelrc 其中可以把env里面的plugins拿到外面来这样就没有Object.defineProperty了!

@sundayha
Copy link

@gggin 按照你的方法还是有啊。怎么解决,求指导

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants