Skip to content

Update dependency css-loader to v7#232

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/css-loader-7.x
Open

Update dependency css-loader to v7#232
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/css-loader-7.x

Conversation

@renovate

@renovate renovate Bot commented Jul 24, 2024

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
css-loader 6.11.07.1.4 age confidence

Release Notes

webpack/css-loader (css-loader)

v7.1.4

Compare Source

v7.1.3

Compare Source

v7.1.2

Compare Source

v7.1.1

Compare Source

v7.1.0

Compare Source

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

v7.0.0

Compare Source

⚠ 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: {
            namedExport: false,
            exportLocalsConvention: 'as-is',
            //
            // or, if you prefer camelcase style
            //
            // exportLocalsConvention: 'camel-case-only'
          },
        },
      },
    ],
  },
};

Typescript migration:

Before:

declare module '*.module.css' {
  const classes: { [key: string]: string };
  export default classes;
}

After:

declare module '*.module.css' {
  const classes: { [key: string]: string };
  export = classes;
}
  • 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)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch from 955225c to 5a3cc7e Compare August 31, 2024 10:34
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch from 5a3cc7e to c32d037 Compare September 25, 2024 16:38
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch 5 times, most recently from eb13066 to ce43677 Compare October 30, 2024 09:44
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch 7 times, most recently from d41b342 to ffed53c Compare January 15, 2025 08:34
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch 3 times, most recently from 5136ce0 to 1539924 Compare February 20, 2025 05:24
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch from 1539924 to bf68a22 Compare March 3, 2025 19:52
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch from bf68a22 to b942189 Compare January 27, 2026 18:09
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch from b942189 to 59b7813 Compare February 16, 2026 15:44
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch from 59b7813 to 87fe7fa Compare May 28, 2026 14:05
@renovate
renovate Bot force-pushed the renovate/css-loader-7.x branch from 87fe7fa to 4f1794d Compare June 1, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants