Closed Velenir closed 7 years ago
In Processing with Babel chapter webpack.parts.js includes:
use: 'babel-loader', options: {/* ... */}
But running npm run build with this config throws Error: options/query provided without loader (use loader + options). It seems options property requires loader property to be present: either
npm run build
Error: options/query provided without loader (use loader + options)
loader: 'babel-loader', options: {/* ... */}
or
use: [{ loader: 'babel-loader', options: {/* ... *} }]
Just use: 'babel-loader' without options works perfectly.
use: 'babel-loader'
Yeah, this should be fixed now. Just noticed it myself. Thanks for the heads up!
In Processing with Babel chapter webpack.parts.js includes:
But running
npm run build
with this config throwsError: options/query provided without loader (use loader + options)
. It seems options property requires loader property to be present: eitheror
Just
use: 'babel-loader'
without options works perfectly.