ardatan/meteor-webpack

Multiple entry points

arichter83 opened this issue · 0 comments

I get this error:

W20190530-11:41:01.327(2)? (STDERR) TypeError: singleWebpackConfig.entry[key].push is not a function
W20190530-11:41:01.327(2)? (STDERR)     at arrangeConfig (packages/ardatan_webpack-dev-middleware.js:242:48)

For this config:

let clientConfig = {
    entry: {
        main: './client/main.tsx',
        widget: './client/widget.tsx'
    },
    ...
}

Can be fixed by:

let clientConfig = {
    entry: {
        main: ['./client/main.tsx'],
        widget: ['./client/widget.tsx']
    },
    ...
}

I will create a PR to fix it.