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

babel配置文件的使用 #2

Open
youngwind opened this issue Dec 6, 2015 · 0 comments
Open

babel配置文件的使用 #2

youngwind opened this issue Dec 6, 2015 · 0 comments
Labels

Comments

@youngwind
Copy link
Owner

刚刚开始接触babel的时候,是在用webpack打包的时候使用的,比如这样子。
2015-12-18 3 44 42

后来因为要编译Object.assgin(这里还踩过一次坑,见 #3 ),把所有babel参数提出来放在.babelrc文件中,比如像这样就可以了。

.babelrl 文件
{
  "presets":["react","es2015","stage-0"],
  "plugins": ["transform-object-assign"]
}
@youngwind youngwind reopened this Dec 18, 2015
@youngwind youngwind changed the title 记一次如何找到Object.assign()编译方法的历程 babel配置文件的使用 Dec 18, 2015
@youngwind youngwind added the JS label Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant