Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

updating peerDependency to webpack 5 #126

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

weaverryan
Copy link
Contributor

Fixes #123

As far as I can tell, this works fine with Webpack 5 (but ideally the tests can tell us more).

Cheers!

Copy link

@stof stof left a comment

Choose a reason for hiding this comment

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

Tests won't tell you anything, because the devDependencies are still installing webpack 4.

package.json Outdated
@@ -37,7 +37,7 @@
]
},
"peerDependencies": {
"webpack": "^4.0.0"
"webpack": "^5.0.0"
Copy link

Choose a reason for hiding this comment

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

shouldn't this be ^4.0.0 || ^5.0.0 as the plugin still support webpack 4 (as you did not change anything) ?

@weaverryan
Copy link
Contributor Author

I've fixed the peerDependency to allow v4 or v5 and I should have the tests running in both v4 and... though the tests do not show up here for some reason. I can see my latest build, for example, here: https://travis-ci.org/github/geowarin/friendly-errors-webpack-plugin/builds/758364013 - but in Webpack 4, one test was already failing.

@@ -7,7 +7,10 @@
"node": ">=8.0.0"
},
"scripts": {
"test": "eslint --ignore-pattern 'test/*' . && jest"
"test": "yarn run test:webpack4 && yan run @test:webpack5",
Copy link

Choose a reason for hiding this comment

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

typo: yarn and extra @

@@ -7,7 +7,10 @@
"node": ">=8.0.0"
},
"scripts": {
"test": "eslint --ignore-pattern 'test/*' . && jest"
"test": "yarn run test:webpack4 && yan run @test:webpack5",
"test:webpack4": "eslint --ignore-pattern 'test/*' . && jest",
Copy link

Choose a reason for hiding this comment

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

eslint --ignore-pattern 'test/*' is not really about testing webpack 4. This should be stay in test

@VincentLanglet
Copy link

Hi @geowarin, would you have some time to take a look at this PR ? :)

@stof
Copy link

stof commented Apr 9, 2021

Hi @geowarin any chance to take a look at this ? This plugin is used in @symfony/webpack-encore, which is the official way to use webpack in the Symfony ecosystem.

@janklan
Copy link

janklan commented Apr 14, 2021

Last commit on master 23 Dec 2019, last release in April 2018. This plugin looks like dead to me?

@galaxy-s10
Copy link

@geowarin,你有时间看看这个公关吗? 😁

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Peer Dependency issue with Webpack v5.x
5 participants