Skip to content

Leading _ in exported classname #541

Closed
@Diokuz

Description

@Diokuz

bug

What is the current behavior?

:export {
  ._x { color: red }
}

transformed to object

exports.locals = {
	"x": "src⁄x___x"
};

If the current behavior is a bug, please provide the steps to reproduce.
just use [css-loader, postcss-loader] with this postcss.config.js:

const plugins = [
  require('postcss-modules-local-by-default'),
  require('postcss-modules-scope')(),
];

exports.plugins = plugins;

What is the expected behavior?
should be

exports.locals = {
	"_x": "src⁄x___x"
};

Please mention other relevant information such as your webpack version, Node.js version and Operating System.

node@7 webpack@2 css-loader@0.28.2

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions