'WebStorm doesn't recognize webpack css import from npm package export

I updated some webpack stuff and now they expect imports using the npm packages exports.

New syntax is:

enter image description here

Old syntax:

enter image description here

It is expecting you to use imports from the swiper node modules package.json export field here:

enter image description here

Question:

How to get WebStorm/PhpStorm to recognize this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source