Webpack how to specify the path to the modules?

Good afternoon, help, webpak stopped find the path to the node_modules folder

Here is my build https://github.com/reskwer/blank
npm run gulp - Runs the project (I Have Gulp4 is not globally)
gulp lies in dev/gulp/

Here task Webpage
import from gulp 'gulp';
import webpack from 'webpack-stream';
import plumber from 'gulp-plumber';
import errorHandler from './errorHandler';
import {projectPath, distPath} from './path';

gulp.task('js', function() {
 let webpackOptions = {
 output: {
 filename: distPath('js/script.js'),
 library: 'app'
 devtool: 'cheap-inline-module-source-map',
 module: {
 loaders: [{
 test: /\.js$/,
 loader: 'babel-loader'

 return gulp.src(projectPath('js/app.js'))
 errorHandler: errorHandler

In app.js I'm uploading a jQuery and local module, jikiri is not unloaded and the local well is included in the Assembly
import word from './home';
import $ from 'jquery';

Please help solve the problem.
August 23rd 19 at 10:51
1 answer
August 23rd 19 at 10:53
Galpon not use it, just saying...
The path to the modules specified in the resolve section. You can specify aliases and all sorts of stuff.
resolve: {
 modules: [/*Potter,*/ "node_modules"]

Very strange that he did not see, by default, all imports should come from node_modules as far as I know

did not help.. Module build failed: Error: couldn't find preset "es2015" relative to directory "d:\\Desktop\\blank\\dev\\js" - Delpha.Turner commented on August 23rd 19 at 10:56
he's just not looking in the wrong directory, as I just wrote, he's trying to look in the directory where I have JS lies - Delpha.Turner commented on August 23rd 19 at 10:59
import webpack from 'webpack-stream'; what is this package? why the stream? to Babel loader preset desired "es2015" usually yuzayut
Are you on Windows yet, there may be other differences associated with it, although the minimum I think it is not the case
The attitude of the loader (preset point), but never in the way. I don't even know what else... - shayna.Kuhn commented on August 23rd 19 at 11:02

Find more questions by tags JavaScriptWebpack