Closed LeoIannacone closed 7 years ago
@LeoIannacone I will take a look. Could you please share minimum example how to reproduce it?
@LeoIannacone Which node version do you use?
Sure:
this the config that raises the issue:
import path from 'path'
import Config from 'webpack-config'
import webpack from 'webpack'
import {PATHS} from '../../app.config'
const basePath = path.join(__dirname, 'base.config.js')
const base = require(basePath)
const config = Config().extend(basePath).merge({
filename: __filename,
devtool: 'cheap-module-eval-source-map',
output: {
pathinfo: true,
devtoolModuleFilenameTemplate: 'webpack:///[absolute-resource-path]',
},
entry: {
main: [
`webpack-hot-middleware/client?path=${base.hotMiddleware.path}?reload=true`,
PATHS.scripts.src,
],
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
],
})
export default config
node v6.10.1
npm 3.10.10
@LeoIannacone The root issue is from https://github.com/59naga/babel-plugin-add-module-exports. It looks like that this project is not supported any more and it doesn't parse properly multiple export
statements.
I'm going to delete babel-plugin-add-module-exports
and after that webpack-config
should work as before.
@LeoIannacone For now you can use:
import {
Config
} from 'webpack-config'
@LeoIannacone Did it help?
Yes, it fixes the issue. Thanks.
@LeoIannacone Great. I will close the issue.
With version 7.3.0 does not work. Everything is ok with version 7.0.0