Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency css-loader to v7 - autoclosed #1050

Closed

Conversation

valtionavustus-renovate[bot]
Copy link
Contributor

@valtionavustus-renovate valtionavustus-renovate bot commented Apr 4, 2024

This PR contains the following updates:

Package Type Update Change
css-loader devDependencies major 6.11.0 -> 7.1.2

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 - "every weekend,after 5pm,before 5am" (UTC), Automerge - "every weekend,after 5pm and before 5am" (UTC).

🚦 Automerge: Enabled.

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 has been generated by Renovate Bot.

@valtionavustus-renovate valtionavustus-renovate bot force-pushed the github-renovate/css-loader-7.x branch 18 times, most recently from f801454 to 8dc30cf Compare April 11, 2024 19:02
@valtionavustus-renovate valtionavustus-renovate bot force-pushed the github-renovate/css-loader-7.x branch 11 times, most recently from b855223 to a0cce1c Compare April 15, 2024 12:20
auto-merge was automatically disabled September 13, 2024 10:35

Pull request was closed

@valtionavustus-renovate valtionavustus-renovate bot deleted the github-renovate/css-loader-7.x branch September 13, 2024 10:35
@valtionavustus-renovate valtionavustus-renovate bot changed the title Update dependency css-loader to v7 - autoclosed Update dependency css-loader to v7 Sep 13, 2024
@valtionavustus-renovate valtionavustus-renovate bot restored the github-renovate/css-loader-7.x branch September 13, 2024 11:25
@valtionavustus-renovate valtionavustus-renovate bot force-pushed the github-renovate/css-loader-7.x branch 17 times, most recently from 75908f8 to 75544b9 Compare September 14, 2024 10:29
@valtionavustus-renovate valtionavustus-renovate bot changed the title Update dependency css-loader to v7 Update dependency css-loader to v7 - autoclosed Sep 16, 2024
auto-merge was automatically disabled September 16, 2024 06:27

Pull request was closed

@valtionavustus-renovate valtionavustus-renovate bot deleted the github-renovate/css-loader-7.x branch September 16, 2024 06:27
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