Version
2.7.11
Reproduction link
codesandbox.io
Steps to reproduce
Using CSS modules to define styles in a component.
What is expected?
It should not throw the error.
Reverting back to v2.7.10, it logs the actual CSS module class.

What is actually happening?
It's throwing an error in console.
Current instance does not have CSS module named "$style"
