Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Apr 10, 2025

This removes the bundler: 'browserify' option and related options from the CLI. These were deprecated since July 20, 2023 (#1521), and the default bundler was changed from Browserify to Webpack in February 2024 (#2214). With this PR, Browserify and the legacy config format are no longer supported.

@codecov
Copy link

codecov bot commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.79%. Comparing base (fd21bb6) to head (0bb5438).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3313      +/-   ##
==========================================
+ Coverage   94.73%   97.79%   +3.06%     
==========================================
  Files         518      363     -155     
  Lines       11947     9893    -2054     
  Branches     1836     1613     -223     
==========================================
- Hits        11318     9675    -1643     
+ Misses        629      218     -411     

☔ 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.

@Mrtenz Mrtenz marked this pull request as ready for review April 11, 2025 10:00
@Mrtenz Mrtenz requested a review from a team as a code owner April 11, 2025 10:00
},
"source": {
"shasum": "HehP6oFGpT5GZKlzNTVsHCTeTOlBF1044VvfhQGOCEk=",
"shasum": "6MsBR6Q/fNzDp5dGRWhBZLIBYu4o31cZRTI9iIUdIn0=",
Copy link
Member

Choose a reason for hiding this comment

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

Why did this Snap change? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

One of the Webpack module IDs changed, I guess because the loader changed slightly.

$ diff new.js old.js   
215c215
<           var _build_program_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(580);
---
>           var _build_program_wasm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(618);
236c236
<     580: (module, __webpack_exports__, __webpack_require__) => {
---
>     618: (module, __webpack_exports__, __webpack_require__) => {

};
}

// When running as CJS, we need to export the loader as a default export, since
Copy link
Member

Choose a reason for hiding this comment

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

Do we not still want to allow the CLI to run under CJS?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was only needed for tsup. ts-bridge doesn't have the same issue.

Copy link
Member

Choose a reason for hiding this comment

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

Ah 👍

// Since this is an end-to-end test, and we're working with a "real" snap,
// we have to make a copy of the original snap manifest, so we can modify it
// and reset it after the test.
originalManifest = await fs.readFile(
Copy link
Member

Choose a reason for hiding this comment

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

Why do we not need this anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was only needed for Browserify, I think because the shasum changed in some cases in the tests? Running the E2E test for Webpack doesn't modify the manifest.

@Mrtenz Mrtenz added this pull request to the merge queue Apr 11, 2025
Merged via the queue into main with commit 34eb28d Apr 11, 2025
164 checks passed
@Mrtenz Mrtenz deleted the mrtenz/remove-browserify branch April 11, 2025 10:30
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.

3 participants