WebStorm not resolving async webpack config

In my project the configuration has to be async, but because of this WebStorm can't resolve my alias.

module.exports = async () => {
await doSomething();
return {
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
};
};

 

My quick fix is to create a webpack config only for WebStorm ...

0
2 comments

Works fine for me:

 

Can you see any errors related to webpack configuration file processing in Event Log view? Please reproduce the issue and share your idea.log

 

0

Hi,

 

Thank you for your help. I made a mistake (thanks for the Event Log view) in the WebPack configuration ...

Sorry about that.

1

Please sign in to leave a comment.