Skip to content

fix(vite): vite 8 rolldown integration enforces strict type checking - #1152

Merged
tivac merged 2 commits into
tivac:mainfrom
tanishalfelven:patch-1
Aug 2, 2026
Merged

fix(vite): vite 8 rolldown integration enforces strict type checking#1152
tivac merged 2 commits into
tivac:mainfrom
tanishalfelven:patch-1

Conversation

@tanishalfelven

@tanishalfelven tanishalfelven commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Description

Fix for vite 8. The new rolldown integration introduced strict type checking for moduleSideEffects.

moduleSideEffects cannot return a number (this sometimes would return 0 🙃).

Error: Value is none of these types `bool`, `String`,  on BindingHookTransformOutput.moduleSideEffects

Motivation and Context

i like using these tools

How Has This Been Tested?

passes tests locally, this is not tested

Types of changes

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [ x] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • [x ] All new and existing tests passed.
  • I have added a changeset for my change.

…checking for moduleSideEffects value

`moduleSideEffects` cannot return a number (this sometimes would return `0` which breaks rolldown).

```
Error: Value is none of these types `bool`, `String`,  on BindingHookTransformOutput.moduleSideEffects
```
@changeset-bot

changeset-bot Bot commented Aug 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: efa370a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@modular-css/vite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for m-css ready!

Name Link
🔨 Latest commit efa370a
🔍 Latest deploy log https://app.netlify.com/projects/m-css/deploys/6a6f61091bc39e0008a7926c
😎 Deploy Preview https://deploy-preview-1152--m-css.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.

@tivac
tivac merged commit ee72e2d into tivac:main Aug 2, 2026
7 checks passed
@github-actions github-actions Bot mentioned this pull request Aug 2, 2026
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.

2 participants