Skip to content

Bump css-loader from 6.8.1 to 7.1.1

HIFIS Bot requested to merge dependabot/npm_and_yarn/css-loader-7.1.1 into master

Bumps css-loader from 6.8.1 to 7.1.1.

Release notes

Sourced from css-loader's releases.

v7.1.1

7.1.1 (2024-04-10)

Bug Fixes

  • automatically rename class default to _default when named export is enabled (#1590) (d6c31a1)

v7.1.0

7.1.0 (2024-04-08)

Features

  • added the getJSON option to output CSS modules mapping (#1577) (af834b4)

v7.0.0

7.0.0 (2024-04-04)

BREAKING CHANGES

  • The modules.namedExport option is true by default if you enable the esModule option

Migration guide:

Before:

import style from "./style.css";
console.log(style.myClass);

After:

import * as style from "./style.css";
console.log(style.myClass);
  • The modules.exportLocalsConvention has the value as-is when the modules.namedExport option is true and you don't specify a value
  • Minimum supported webpack version is 5.27.0
  • Minimum supported Node.js version is 18.12.0

Features

  • The modules.namedExports option works fine with any modules.exportLocalsConvention values (f96a110)
  • Added dashed variants for the modules.exportLocalsConvention options (40e1668)

... (truncated)

Changelog

Sourced from css-loader's changelog.

7.1.1 (2024-04-10)

Bug Fixes

  • automatically rename class default to _default when named export is enabled (#1590) (d6c31a1)

7.1.0 (2024-04-08)

Features

  • added the getJSON option to output CSS modules mapping (#1577) (af834b4)

7.0.0 (2024-04-04)

BREAKING CHANGES

  • The modules.namedExport option is true by default if you enable the esModule option

Migration guide:

Before:

import style from "./style.css";
console.log(style.myClass);

After:

import * as style from "./style.css";
console.log(style.myClass);

To restore 6.x behavior, please use:

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        loader: "css-loader",
        options: {
          modules: {
</tr></table> 

... (truncated)

Commits
  • 5c717c9 chore(release): 7.1.1
  • d6c31a1 fix: automatically rename class default to _default when named export is ...
  • b162e25 chore(release): 7.1.0
  • 15f793d docs: update logic (#1587)
  • 9c165a4 docs: update migration guide (#1586)
  • af834b4 feat: added the getJSON option to output CSS modules mapping (#1577)
  • fd18587 chore: husky migration (#1584)
  • 96e6ff4 chore(release): 7.0.0
  • a2231ae test: update
  • f96a110 feat: namedExports works fine with any exportLocalsConvention value
  • Additional commits viewable in compare view

Merge request reports