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

how to access BUILD_TARGET in babel.config.js #892

Closed
hardfist opened this issue Jan 20, 2019 · 2 comments · Fixed by #1108
Closed

how to access BUILD_TARGET in babel.config.js #892

hardfist opened this issue Jan 20, 2019 · 2 comments · Fixed by #1108
Labels

Comments

@hardfist
Copy link

hardfist commented Jan 20, 2019

in order to support babel-plugin-import plugin ,I need to give different option depends on BUILD_TARGET

## for server
['import', { libraryName: 'antd'}]
## for client
['import',{libraryName: 'antd', style: true}]

but it seems that process.env.BUILD_TARGET is undefined in babel.config.js, how can I use BUILD_TARGET in babel.config.js

@revskill10
Copy link

@hardfist I made a PR to do that here

@stale stale bot added the stale label Apr 21, 2019
@nimaa77 nimaa77 linked a pull request Mar 17, 2020 that will close this issue
@nimaa77
Copy link
Collaborator

nimaa77 commented Mar 17, 2020

fixed in #1108

@nimaa77 nimaa77 closed this as completed Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants