Skip to content

chore(deps): update dependency cssnano to v9 - #1222

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cssnano-9.x
Open

chore(deps): update dependency cssnano to v9#1222
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cssnano-9.x

Conversation

@renovate

@renovate renovate Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
cssnano 8.0.109.0.2 age confidence

Release Notes

cssnano/cssnano (cssnano)

v9.0.2: v9.0.2

Compare Source

What's Changed

  • fix: add main and types to package manifests in #​1958
  • fix: update postcss-calc

Full Changelog: https://github.com/cssnano/cssnano/compare/cssnano@9.0.1...cssnano@9.0.2

v9.0.1: v9.0.1

Compare Source

What's Changed

  • refactor: some small performance gains in #​1955

Full Changelog: https://github.com/cssnano/cssnano/compare/cssnano@9.0.0...cssnano@9.0.1

v9.0.0: v9.0.0

Compare Source

What's Changed

Breaking changes
  • Migrate to ESM and simplify config loading in #​1948

Probably backward-compatible for most users. Some changes to configuration loading documented in migration guide.

Bug fixes
  • Introduce new postcss-calc plugin in 34aec91

Full Changelog: https://github.com/cssnano/cssnano/compare/cssnano@8.0.10...cssnano@9.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Monday through Friday (* * * * 1-5)
  • 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.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Sep 10, 2026

@doistbot doistbot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is a routine Renovate bump of cssnano from 8.0.10 to 9.0.2, touching only package.json and package-lock.json. The lockfile changes look consistent — the new cssnano preset's postcss peer range is satisfied by the installed postcss, and the new Node engines ranges match the repo's engines, .node-version, and CI matrix.

Few things worth tightening:

  • cssnano 9 is ESM-only (the release notes list the ESM migration as a breaking change), but postcss.config.js still uses require('cssnano') and the package has no "type": "module". Node will throw ERR_REQUIRE_ESM when Vite/Storybook load the config.
  • Consider renaming to postcss.config.mjs with an ESM import, or keeping CommonJS and loading cssnano via await import('cssnano') in an async config.

Share FeedbackReview Logs

Comment thread package.json
"classnames": "2.5.1",
"conventional-changelog-conventionalcommits": "9.3.1",
"cssnano": "8.0.10",
"cssnano": "9.0.2",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 cssnano 9 is ESM-only (the release notes list "Migrate to ESM" as a breaking change), but postcss.config.js still loads it with require('cssnano'). This repo has no "type": "module", so that config resolves as CommonJS, and Node throws ERR_REQUIRE_ESM when Vite/Storybook load it. Convert the config to ESM (e.g. postcss.config.mjs with import cssnano from 'cssnano') or keep it CommonJS and load the plugin via await import('cssnano') in an async config.

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.

1 participant