Исходник webpack.config.js:
https://codepen.io/PolyakhAlex/pen/rzEdyM?editors=0010
Запуская команду webpack получаю ошибку:
ERROR in ./home.js
Module build failed: ReferenceError: [BABEL] C:\Users\Polyakh\Desktop\Webpack\home.js: Using removed Babel 5 option: base.optional - Put the specific transforms y
ou want in the `plugins` option
at Logger.error (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-core\lib\transformation\file\logger.js:41:11)
at OptionManager.mergeOptions (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-core\lib\transformation\file\options\option-manager.js:220:20)
at OptionManager.init (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-core\lib\transformation\file\index.js:135:24)
at Pipeline.transform (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-loader\lib\index.js:50:20)
at Object.module.exports (C:\Users\Polyakh\Desktop\Webpack\node_modules\babel-loader\lib\index.js:175:20)