Skip to content

chore(deps): update webpack (major)#284

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/major-webpack
Closed

chore(deps): update webpack (major)#284
renovate[bot] wants to merge 1 commit intomainfrom
renovate/major-webpack

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jan 22, 2024

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Change Age Confidence
css-loader ^6.8.1 -> ^7.1.2 age confidence
postcss-loader ^7.3.3 -> ^8.2.0 age confidence
style-loader ^3.3.3 -> ^4.0.0 age confidence
webpack-cli (source) ^5.1.4 -> ^6.0.1 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)
webpack-contrib/postcss-loader (postcss-loader)

v8.2.0

Compare Source

Features
  • update jiti from v1 to v2 (9c74974)
8.1.1 (2024-02-28)
Bug Fixes
  • respect default when loading postcss esm configs (52d8050)

v8.1.1

Compare Source

Features
  • update jiti from v1 to v2 (9c74974)
8.1.1 (2024-02-28)
Bug Fixes
  • respect default when loading postcss esm configs (52d8050)

v8.1.0

Compare Source

Features
  • update jiti from v1 to v2 (9c74974)
8.1.1 (2024-02-28)
Bug Fixes
  • respect default when loading postcss esm configs (52d8050)

v8.0.0

Compare Source

⚠ BREAKING CHANGES
7.3.4 (2023-12-27)
Bug Fixes
7.3.3 (2023-06-10)
Bug Fixes
  • perf: avoid using klona for postcss options (#​658) (e754c3f)
  • bug with loading configurations after updating cosmiconfig to version 8.2 (684d265)
7.3.2 (2023-05-28)
Bug Fixes
7.3.1 (2023-05-26)
Bug Fixes
  • warning and error serialization (65748ec)
webpack-contrib/style-loader (style-loader)

v4.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported webpack version is 5.27.0
  • minimum support Node.js version is 18.12.0
  • the insert option can only be a selector or the path to the module

Migration:

Before:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "styleTag",
              styleTagTransform (css, style) {
                // Do something ...
                style.innerHTML = `${css}.modify{}\n`;

                document.head.appendChild(style);
              },
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};

After:

insert-function.js

function insert(css, style) {
  const parent = options.target || document.head;

  parent.appendChild(element);
}

module.exports = insert;

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              insert: require.resolve("./insert.js"),
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};
  • the styleTagTransform option can only be the path to the module

Migration:

Before:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "styleTag",
              styleTagTransform (css, style) {
                // Do something ...
                style.innerHTML = `${css}.modify{}\n`;

                document.head.appendChild(style);
              },
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};

After:

style-tag-transform-function.js

function styleTagTransform(css, style) {
  // Do something ...
  style.innerHTML = `${css}.modify{}\n`;

  document.head.appendChild(style);
}

module.exports = styleTagTransform;

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              styleTagTransform: require.resolve("./style-tag-transform-function.js"),
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};
Bug Fixes
3.3.3 (2023-05-19)
Bug Fixes
3.3.2 (2023-03-13)
Bug Fixes
3.3.1 (2021-10-21)
Bug Fixes
webpack/webpack-cli (webpack-cli)

v6.0.1

Compare Source

Bug Fixes

v6.0.0

Compare Source

BREAKING CHANGES
  • the minimum required Node.js version is 18.12.0
  • removed init, loader and plugin commands in favor create-webpack-app
  • dropped support for webpack-dev-server@v4
  • minimum supported webpack version is 5.82.0
  • The --define-process-env-node-env option was renamed to --config-node-env
Bug Fixes
Features

5.1.4 (2023-06-07)

Bug Fixes
  • multi compiler progress output (f659624)

5.1.3 (2023-06-04)

Bug Fixes

5.1.2 (2023-06-04)

Bug Fixes
  • improve check for custom webpack and webpack-dev-server package existance (0931ab6)
  • improve help for some flags (f468614)
  • improved support for .cts and .mts extensions (a77daf2)

5.1.1 (2023-05-09)

Bug Fixes

Configuration

📅 Schedule: Branch creation - "before 8am on monday" in timezone America/Los_Angeles, 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • 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/major-webpack branch from 6c89b64 to 83a1b14 Compare January 30, 2024 20:13
@renovate renovate Bot changed the title chore(deps): update dependency postcss-loader to v8 chore(deps): update webpack (major) Feb 12, 2024
@renovate renovate Bot force-pushed the renovate/major-webpack branch 3 times, most recently from 517a819 to a56ca11 Compare February 16, 2024 13:04
@renovate renovate Bot force-pushed the renovate/major-webpack branch from a56ca11 to e68f7e7 Compare February 28, 2024 12:24
@renovate renovate Bot force-pushed the renovate/major-webpack branch from e68f7e7 to fa36e73 Compare March 12, 2024 15:25
@renovate renovate Bot force-pushed the renovate/major-webpack branch from fa36e73 to eec213c Compare March 19, 2024 22:27
@renovate renovate Bot force-pushed the renovate/major-webpack branch 4 times, most recently from 855ba28 to 25b62aa Compare April 10, 2024 15:41
@renovate renovate Bot force-pushed the renovate/major-webpack branch from 25b62aa to a79f90c Compare May 22, 2024 15:55
@renovate renovate Bot force-pushed the renovate/major-webpack branch from a79f90c to 3538afe Compare September 3, 2024 18:53
@renovate renovate Bot force-pushed the renovate/major-webpack branch from 3538afe to 02753e2 Compare December 11, 2024 14:35
@renovate renovate Bot force-pushed the renovate/major-webpack branch 2 times, most recently from 4a774a5 to e75b408 Compare December 20, 2024 16:43
@renovate renovate Bot force-pushed the renovate/major-webpack branch from e75b408 to 963ca53 Compare March 27, 2025 02:31
@renovate renovate Bot force-pushed the renovate/major-webpack branch from 963ca53 to f1b6ab9 Compare August 10, 2025 13:30
@renovate renovate Bot force-pushed the renovate/major-webpack branch from f1b6ab9 to 39e4ee6 Compare September 6, 2025 20:08
@renovate renovate Bot force-pushed the renovate/major-webpack branch from 39e4ee6 to eff169e Compare September 18, 2025 11:26
@Erisa Erisa closed this Sep 18, 2025
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.

1 participant