A
A
Alex Polyakh2017-09-08 10:40:54
JavaScript
Alex Polyakh, 2017-09-08 10:40:54

Webpack [email protected], what is wrong in 'webpack.config.js' configuration?

Source webpack.config.js:
https://codepen.io/PolyakhAlex/pen/rzEdyM?editors=0010
Running the webpack command I get an error:
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)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
emp1re, 2017-09-08
@emp1re

module: loaders Is there such a property in module?
module: rules , and then loader
example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question