Skip to content

Conversation

@Lightning00Blade
Copy link

@Lightning00Blade Lightning00Blade commented Oct 21, 2025

PR Checklist

Overview

Updates rollup to v4.
This change is needed for the EsLint v9 bump - #5483.

Notable changes drops rollup-plugin-node-global and uses rollup-plugin-polyfill-node unconditionally.

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.69%. Comparing base (9a70533) to head (ea3d277).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5510   +/-   ##
=======================================
  Coverage   93.69%   93.69%           
=======================================
  Files          57       57           
  Lines        4390     4390           
  Branches      849      849           
=======================================
  Hits         4113     4113           
  Misses        277      277           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

format
Copy link
Member

@mark-wiemer mark-wiemer left a comment

Choose a reason for hiding this comment

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

Just commenting some first thoughts for now, I'll need to review Rollup in more detail and test this locally to see what's going on. Might be a week-ish, I usually prioritize bugfixes first.

"test/integration/fixtures/**",
".karma/**",
"mocha.js",
// TODO: EsLint v8 parser can't parse Import attributes
Copy link
Member

Choose a reason for hiding this comment

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

Can you clarify what this comment means?

Copy link
Author

Choose a reason for hiding this comment

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

If you use Import attributes they can't be parsed by the AST builder used in EsLint v8 and it crashes the lint process.

Copy link
Author

Choose a reason for hiding this comment

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

So import packageJson from "./package.json" with { type: "json" }; result is something like

Error: unexpected character `{` in X

import pickFromPackageJson from "./scripts/pick-from-package-json";
import { version } from "./package.json";
import pickFromPackageJson from "./scripts/pick-from-package-json.mjs";
import packageJson from "./package.json" with { type: "json" };
Copy link
Member

Choose a reason for hiding this comment

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

why change this one? does the old import { version } from "./package.json"; no longer work? would it work if we used import { version } from "./package.json" with { type: "json" }; ?

Copy link
Author

Choose a reason for hiding this comment

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

I have to double check the first part, that was something but for the Import Attributes only Default exports are possible

Note: JSON modules only have one default export. You cannot do named imports from them (like import { name } from "data.json").

MDN docs

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