We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Webpack 使用一个名为 webpack.config.js 的配置文件,要编译 JSX,先安装对应的 loader: npm install babel-loader --save-dev
webpack.config.js
npm install babel-loader --save-dev
在我的环境下是 npm install babel-loader babel-core --save-dev, 不然执行 webpack -d --watch 会报找不到 babel-core 的错误.
npm install babel-loader babel-core --save-dev
webpack -d --watch
The text was updated successfully, but these errors were encountered:
npm install babel-loader --save-dev 就可以了 babel-core在peerDependencies里
Sorry, something went wrong.
当我只执行 npm install babel-loader --save-dev 时会报以下警告 npm WARN [email protected] requires a peer of babel-core@^6.0.0 but none was installed. @ofmiclee 你知道是什么原因吗
npm WARN [email protected] requires a peer of babel-core@^6.0.0 but none was installed.
@ofmiclee 啊, 我找到了, http://blog.npmjs.org/post/110924823920/npm-weekly-5 新的版本似乎不再自动安装 peerDependencies
@theJian 是的 我的还是2.11.3老古董 会自动安装同伴依赖
No branches or pull requests
在我的环境下是
npm install babel-loader babel-core --save-dev
, 不然执行webpack -d --watch
会报找不到 babel-core 的错误.The text was updated successfully, but these errors were encountered: