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

webserver和build中babel的处理依赖全局安装的babel #334

Open
otakustay opened this issue Jun 25, 2015 · 3 comments
Open

webserver和build中babel的处理依赖全局安装的babel #334

otakustay opened this issue Jun 25, 2015 · 3 comments

Comments

@otakustay
Copy link
Member

现在有这样的情况,当babel升级时,无论webserver和build有没有新版本,其实都要重装一次,因为npm的依赖管理是树状的,重装就是为了让这2东西依赖的babel升级到最新版

这很蛋疼,而且我也看不到当前webserver和build依赖的到底是哪个版本

能不能让这2东西依赖我自己安装的全局的babel呢?

@leeight
Copy link
Member

leeight commented Jun 25, 2015

跟less一样,让你传一个 babel 进去?

@leeight
Copy link
Member

leeight commented Jun 25, 2015

能不能让这2东西依赖我自己安装的全局的babel呢?

猜测不出来路径,没办法 require 耶?

@otakustay
Copy link
Member Author

能直接用CMD不,不能的话外面传一个进去吧

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

2 participants