-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
AtofStryker
wants to merge
1
commit into
release/15.0.0
Choose a base branch
from
breaking/remove_built_ins_from_webpack_5
base: release/15.0.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
breaking: remove built-ins from @cypress/webpack-batteries-included-preprocessor
#31738
AtofStryker
wants to merge
1
commit into
release/15.0.0
from
breaking/remove_built_ins_from_webpack_5
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@cypress/webpack-batteries-included-preprocessor
cypress
|
Project |
cypress
|
Branch Review |
breaking/remove_built_ins_from_webpack_5
|
Run status |
|
Run duration | 18m 23s |
Commit |
|
Committer | Bill Glesias |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
9
|
|
1097
|
|
0
|
|
26502
|
View all changes introduced in this branch ↗︎ |
UI Coverage
44.86%
|
|
---|---|
|
188
|
|
157
|
Accessibility
92.89%
|
|
---|---|
|
3 critical
9 serious
2 moderate
2 minor
|
|
670
|
9066b10
to
7a6c78c
Compare
…rade as they should no longer be needed for most users
7a6c78c
to
2ca3df4
Compare
AtofStryker
commented
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] |
There was a problem hiding this comment.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 preprocessorHow has the user experience changed?
PR Tasks
cypress-documentation
? chore: add migration guide for@cypress/webpack-batteries-included-preprocessor
built-ins removal cypress-documentation#6192type definitions
?