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

Fix couldn't find preset 'babel-preset-es2015' #32

Merged
merged 1 commit into from
Oct 21, 2016

Conversation

f111fei
Copy link
Contributor

@f111fei f111fei commented Oct 21, 2016

如何重现:

由于我们的模块引用了wept,执行 npm install 后,会得到如下目录结构

.
├── package.json
├── node_modules
   ├── babel-preset-es2015
   └── wept

由于npm的新的安装机制, wept所依赖的模块例如这个babel-preset-es2015会被安装到与wept同级的目录。所以之前 path.resolve(__dirname, '../node_modules/babel-preset-es2015') 这种写法是错误的。

我从这个地方找到了解决办法
babel/gulp-babel#93

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

Successfully merging this pull request may close these issues.

2 participants