chore(deps): update dependency cssnano to v9 - #1222
Conversation
doistbot
left a comment
There was a problem hiding this comment.
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.jsstill usesrequire('cssnano')and the package has no"type": "module". Node will throwERR_REQUIRE_ESMwhen Vite/Storybook load the config. - Consider renaming to
postcss.config.mjswith an ESM import, or keeping CommonJS and loading cssnano viaawait import('cssnano')in an async config.
| "classnames": "2.5.1", | ||
| "conventional-changelog-conventionalcommits": "9.3.1", | ||
| "cssnano": "8.0.10", | ||
| "cssnano": "9.0.2", |
There was a problem hiding this comment.
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.
This PR contains the following updates:
8.0.10→9.0.2Release Notes
cssnano/cssnano (cssnano)
v9.0.2: v9.0.2Compare Source
What's Changed
Full Changelog: https://github.com/cssnano/cssnano/compare/cssnano@9.0.1...cssnano@9.0.2
v9.0.1: v9.0.1Compare Source
What's Changed
Full Changelog: https://github.com/cssnano/cssnano/compare/cssnano@9.0.0...cssnano@9.0.1
v9.0.0: v9.0.0Compare Source
What's Changed
Breaking changes
Probably backward-compatible for most users. Some changes to configuration loading documented in migration guide.
Bug fixes
34aec91Full Changelog: https://github.com/cssnano/cssnano/compare/cssnano@8.0.10...cssnano@9.0.0
Configuration
📅 Schedule: (UTC)
* * * * 1-5)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.