-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Labels
CSShas-fixA fix is available, but may not yet be released.A fix is available, but may not yet be released.upstream
Milestone
Description
Regardless --css-modules flag, it is impossible to use CSS and CSS Modules in the same project. It seems that null option works incorrectly and Rollup treats all CSS files as modules.
To reproduce, you could try to build this simple example:
import React from 'react';
import './index.css'
import styles from './index.module.css';
const App = () => (
<div>
<div className={styles.moduleClass}>CSS module class</div>
<div className="local-no-module-class">No-module class</div>
</div>
);
export default App;Building with microbundle ./index.jsx makes the following index.css file:
._1fWqO{color:#00f}
._3umtn{color:red}However, the expected result is:
._1fWqO{color:#00f}
.local-no-module-class{color:red}NithinBiliya, ajfranzoia, kyriacos, haaarshsingh and mickeypuri
Metadata
Metadata
Assignees
Labels
CSShas-fixA fix is available, but may not yet be released.A fix is available, but may not yet be released.upstream