-
Notifications
You must be signed in to change notification settings - Fork 1
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
Maintenance: Security updates #102
Conversation
MKodde
commented
Sep 20, 2023
•
edited
Loading
edited
- Yarn & Composer updates installed
- Upgraded Webpack Encore from v1 to 4
And ran composer bump to also update the composer.json package version to reflect the actually installed package versions.
The security updates are now breaking the unit and accpetance tests I've investigated on my dev env and the following things are in the way:
I feel OK to move forward with this, and tag it pre-release for now. We are about to overhaul this project and upgrade it to SF 5/6. So putting in this work now seems illogical. |
webpack.config.js
Outdated
.addLoader({ test: /\.scss$/, loader: 'import-glob-loader' }) | ||
.addLoader({test: /\.scss$/, loader: 'webpack-import-glob-loader'}) | ||
.configureLoaderRule('eslint', loaderRule => { | ||
loaderRule.test = /\.(jsx?|vue)$/ |
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.
What does this do?
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.
Thanks for pointing this out.
To answer your question. This loads eslint and configures it to mark jsx and vue files a test resources
And that is completely out of scope for this project. Removed this loader.
FYI This code came from another stepup project where we already upgraded to Encore 4. So I yanked some of the updated config from there. But kept a bit too much 😊
package.json
Outdated
"compass-mixins": "^0.12.10", | ||
"@babel/core": "^7.20.5", | ||
"@babel/preset-env": "^7.20.2", | ||
"@symfony/webpack-encore": "^4", "compass-mixins": "^0.12.10", |
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.
Indent error?
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.
Yes, fixed that 👍
8957d69
to
d5c7194
Compare
d5c7194
to
b72de0f
Compare