8000 feat: enable babel-plugin-macros by sorrycc · Pull Request #1135 · umijs/umi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: enable babel-plugin-macros #1135

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

Merged
merged 1 commit into from
Sep 26, 2018
Merged

feat: enable babel-plugin-macros #1135

merged 1 commit into from
Sep 26, 2018

Conversation

sorrycc
Copy link
Member
@sorrycc sorrycc commented Sep 26, 2018

No description provided.

@sorrycc sorrycc merged commit 6f98f3b into master Sep 26, 2018
@sorrycc sorrycc deleted the feat/babel-plugin-macros branch September 26, 2018 09:36
@lomocc
Copy link
lomocc commented Jun 24, 2020

现在又不支持了吗?为什么呢?

@sorrycc
Copy link
Member Author
sorrycc commented Jun 28, 2020

3 里没有加这个,没啥人用。

@lomocc
Copy link
lomocc commented Jun 28, 2020

嗯,谢谢,后来找到了,可以通过 extraBabelPlugins: ['babel-plugin-macros'] 配置就够了。(主要之前有,现在没有了,对我来说有一点点疑惑)。
需求是不大,但我个人是很喜欢用的,输出编译时间/项目名/版本号,还有编译时按环境变量选择语言包等这类功能很需要。

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

Successfully merging this pull request may close these issues.

2 participants
0