Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-loader

Package Overview
Dependencies
Maintainers
3
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-loader - npm Package Compare versions

Comparing version 7.1.0 to 7.1.1

5

dist/utils.js

@@ -848,5 +848,8 @@ "use strict";

const normalizedNames = Array.isArray(names) ? new Set(names) : new Set([names]);
for (const name of normalizedNames) {
for (let name of normalizedNames) {
const serializedValue = isTemplateLiteralSupported ? convertToTemplateLiteral(value) : JSON.stringify(value);
if (options.modules.namedExport) {
if (name === "default") {
name = `_${name}`;
}
if (!validIdentifier.test(name) || keywords.has(name)) {

@@ -853,0 +856,0 @@ identifierId += 1;

2

package.json
{
"name": "css-loader",
"version": "7.1.0",
"version": "7.1.1",
"description": "css loader module for webpack",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1159,3 +1159,3 @@ <div align="center">

>
> It is not allowed to use the `default` reserved word in css classes.
> Because it is not allowed to use the `default` class in CSS when the `namedExport` is `true` (since ECMA modules have a reserved keyword `default` for default export), it will be automatically renamed to the `_default` class.

@@ -1171,2 +1171,5 @@ **styles.css**

}
.default {
color: green;
}
```

@@ -1184,2 +1187,5 @@

console.log(styles.fooBaz, styles.bar);
// For the `default` classname
console.log(styles["_default"]);
```

@@ -1186,0 +1192,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc