babel-plugin-css-module-parse

1.0.0 • Public • Published

babel-plugin-css-module-parse

Babel plugin for transforming css module references to strings with prefix.

// transforming
import styles from './index.scss';
<div class={styles.wrap}></div>
<div class={styles[wrap]}></div>
 
// to
import './index.css';
<div class={'prefix-wrap'}></div>
<div class={`prefix-${wrap}`}></div>

Package Sidebar

Install

npm i babel-plugin-css-module-parse

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.93 kB

Total Files

3

Last publish

Collaborators

  • aixfox