-
Notifications
You must be signed in to change notification settings - Fork 3.3k
chore: add minimal built-ins back in to @cypress/webpack-batteries-included-preprocessor
#31815
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
Conversation
cypress
|
Project |
cypress
|
Branch Review |
feat/add_built_ins_minimal
|
Run status |
|
Run duration | 16m 52s |
Commit |
|
Committer | Bill Glesias |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
2
|
|
27
|
|
0
|
|
768
|
View all changes introduced in this branch ↗︎ |
UI Coverage
62.34%
|
|
---|---|
|
27
|
|
48
|
Accessibility
96.16%
|
|
---|---|
|
0 critical
4 serious
1 moderate
0 minor
|
|
121
|
The |
expect(require('os')).to.be.eql({}) | ||
expect(require('path')).to.be.eql({}) | ||
expect(require('os')).to.be.an('object').and.have.property('platform') | ||
expect(require('path')).to.be.an('object').and.have.property('join') | ||
expect(require('perf_hooks')).to.eql({}) | ||
expect(require('punycode')).to.be.eql({}) |
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.
@AtofStryker No test for process?
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.
@jennifer-shehane I think it was just missing. added in 70453bd
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
… to `@cypress/webpack-batteries-included-preprocessor` (#31815)
…o `@cypress/webpack-batteries-included-preprocessor` (#31815)
… to `@cypress/webpack-batteries-included-preprocessor` (#31815)
…o `@cypress/webpack-batteries-included-preprocessor` (#31815)
… to `@cypress/webpack-batteries-included-preprocessor` (#31815)
…o `@cypress/webpack-batteries-included-preprocessor` (#31815)
Additional details
After removing all the webpack 4 built-ins from Cypress 15, We realized that some built-ins should likely be shipped with
@cypress/webpack-batteries-included-preprocessor
in order to not make the change as disruptive. These built-ins are the commonly used node built-ins from observation and happen to bebuffer
,path
,process
,os
, andstream
Steps to test
Should now work where
process
andbuffer
are used.How has the user experience changed?
Should make the change less disruptive if using any of the above built ins. Otherwise, no change is realized to the end user
PR Tasks
cypress-documentation
?type definitions
?