Extract css class names from required css module files for TypeScript. This plugin is based on css-modules-require-hook and so constructor opts are from that repo.
This allows you to do this in TS files:
// Import works
import * as css from 'foo.css'
// require also works
const foo = require('foo.css')
console.log(css.foo)
Append this to before
in your compilation step