Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 12, 2025

This PR contains the following updates:

Package Change Age Confidence
css-loader 6.11.0 -> 7.1.2 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 - 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 becomes conflicted, 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.

@netlify
Copy link

netlify bot commented Feb 12, 2025

Deploy Preview for allotment-storybook ready!

Name Link
🔨 Latest commit 7d6da39
🔍 Latest deploy log https://app.netlify.com/projects/allotment-storybook/deploys/68f8018ad1d70a000805385c
😎 Deploy Preview https://deploy-preview-843--allotment-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 12, 2025

Deploy Preview for allotment-website canceled.

Name Link
🔨 Latest commit 38c416d
🔍 Latest deploy log https://app.netlify.com/sites/allotment-website/deploys/67abfd2e1195ff0008870faf

@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from 38c416d to 5fa45bb Compare August 10, 2025 13:48
@netlify
Copy link

netlify bot commented Aug 10, 2025

Deploy Preview for allotment-website canceled.

Name Link
🔨 Latest commit 5fa45bb
🔍 Latest deploy log https://app.netlify.com/projects/allotment-website/deploys/6898a314dffc820008205255

@renovate renovate bot force-pushed the renovate/css-loader-7.x branch from 5fa45bb to 7d6da39 Compare October 21, 2025 21:56
@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for allotment-website canceled.

Name Link
🔨 Latest commit 7d6da39
🔍 Latest deploy log https://app.netlify.com/projects/allotment-website/deploys/68f8018a4b89af0008fe820f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants