Skip to content

breaking: remove built-ins from @cypress/webpack-batteries-included-preprocessor #31738

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: release/15.0.0
Choose a base branch
from

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented May 19, 2025

Additional details

With the release of Cypress 15, we are removing the default built-ins from the @cypress/webpack-batteries-included-preprocessor as they are usually not used by end users within their cypress tests and bloat the user bundle. This is also to reduce security vulnerabilities introduced by the built-ins.

Note: some tests needed to be pulled out into their own directory to prevent cross-pollination of the build-ins in the cypress config. Hence why the screenshots test and the node built in test were both moved

Steps to test

If wanting to use the built-ins, set up a project that has references to path within your spec file. notice the test fails because path is no longer provided by the preprocessor

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker changed the title breaking: remove webpack built-ins shimmed in from webpack 4 to 5 upg… breaking: remove built-ins from @cypress/webpack-batteries-included-preprocessor May 19, 2025
Copy link

cypress bot commented May 19, 2025

cypress    Run #62601

Run Properties:  status check passed Passed #62601  •  git commit 2ca3df423e: breaking: remove webpack built-ins shimmed in from webpack 4 to 5 upgrade as the...
Project cypress
Branch Review breaking/remove_built_ins_from_webpack_5
Run status status check passed Passed #62601
Run duration 18m 23s
Commit git commit 2ca3df423e: breaking: remove webpack built-ins shimmed in from webpack 4 to 5 upgrade as the...
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 9
Tests that did not run due to a developer annotating a test with .skip  Pending 1097
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 26502
View all changes introduced in this branch ↗︎
UI Coverage  44.86%
  Untested elements 188  
  Tested elements 157  
Accessibility  92.89%
  Failed rules  3 critical   9 serious   2 moderate   2 minor
  Failed elements 670  

@AtofStryker AtofStryker force-pushed the breaking/remove_built_ins_from_webpack_5 branch 3 times, most recently from 9066b10 to 7a6c78c Compare May 21, 2025 19:27
…rade as they should no longer be needed for most users
@AtofStryker AtofStryker force-pushed the breaking/remove_built_ins_from_webpack_5 branch from 7a6c78c to 2ca3df4 Compare May 21, 2025 19:46
@AtofStryker AtofStryker self-assigned this May 21, 2025
@@ -40,7 +40,7 @@ describe('devServer', function () {
// Writing to disk includes the correct source map size, where the difference will be made up from stat size vs parsed size
// This is critical if a user is trying to debug to determine if they have large source maps or other large files in their dev-server under test
describe('writes to disk if DEBUG=cypress-verbose:webpack-dev-server:bundle-analyzer is set', async () => {
const WEBPACK_DEV_SERVER_VERSIONS: (4 | 5)[] = [4, 5]
const WEBPACK_DEV_SERVER_VERSIONS: (5)[] = [5]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we have a bad merge into the 15 branch. This is very likely failing

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.

1 participant