Skip to content

Update dependency css-loader to v7#248

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

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

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented May 25, 2024

This PR contains the following updates:

Package Change Age Confidence
css-loader ^6.7.3^7.0.0 age confidence

Release Notes

webpack-contrib/css-loader (css-loader)

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: Branch creation - "before 2am" (UTC), 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 these updates 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 added the dependencies Pull requests that update a dependency file label May 25, 2024
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from ad3abdf to d0ded8a Compare July 8, 2024 15:10
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from d0ded8a to b9fa181 Compare July 17, 2024 03:33
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from b9fa181 to b5c889c Compare August 2, 2024 06:52
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch 3 times, most recently from de13480 to 41f74a1 Compare August 29, 2024 14:34
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch 2 times, most recently from 9c13813 to cf8040b Compare September 27, 2024 04:46
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from cf8040b to f58c28b Compare October 29, 2024 00:40
@renovate renovate bot changed the title Update dependency css-loader to v7 Update dependency css-loader to v7 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/css-loader-7.x branch December 8, 2024 18:47
@renovate renovate bot changed the title Update dependency css-loader to v7 - autoclosed Update dependency css-loader to v7 Dec 9, 2024
@renovate renovate bot reopened this Dec 9, 2024
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from 4794d8b to f58c28b Compare December 9, 2024 00:37
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from f58c28b to 72aa968 Compare January 27, 2026 17:58
@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from 72aa968 to bd7f612 Compare February 16, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants