-
Notifications
You must be signed in to change notification settings - Fork 272
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
feat: add support for webpack5 #403
Conversation
i think it due to nodejs version conflict eslint 7.0 need 12.0.0 but .travis is 8.10.0 |
850fce6
to
f9fdb66
Compare
fix: webpack5 support style: clean style: package.json feat: webpack-5 devDependencies update fix: conflict of nodejs version fix: eslint fix: eslint nvm fix: eslint bug eslint/eslint#13352 feat: package update
f9fdb66
to
b34b2b2
Compare
.travis.yml
Outdated
@@ -2,7 +2,7 @@ sudo: false | |||
language: node_js | |||
|
|||
node_js: | |||
- 8.10.0 | |||
- 12.0.0 |
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.
Why not using the latest stable LTS version instead?
- 12.0.0 | |
- 12.18.1 |
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md
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.
update 00f4fc2
.travis.yml
Outdated
@@ -13,7 +13,8 @@ env: | |||
- ISTANBUL_COVERAGE: yes | |||
|
|||
script: | |||
- yarn bootstrap --env webpack-4 | |||
- nvm install 8.10.0 |
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.
Is it necessary to use a deprecated version and support of highly outdated webpack versions?
- nvm install 8.10.0 | |
- nvm install 8.17.0 |
Looking forward to seeing this get in! |
@kisenka Is there a plan to merge this PR for upcoming webpack 5 support? |
+1 -- this is the last Webpack library we're using (at least that I'm aware of 🤞 ) that still needs to get updated before we can upgrade to Webpack 5. 👀 |
Likewise- we've been eagerly awaiting this update! |
Sorry to bug but any updates on this? What work is left that's preventing this from getting merged down...?! |
@kisenka can this be at least released in a beta release? It's the only loader remained preventing us from upgrading to webpack 5. |
Great work! I can only recommend the merge, because it solves the problem with Webpack5 compatibility. Workaround tip, as long as the PR is not merged: Fork the repository of @mayako21126 and create a private NPM package here in Github. That way I bridge the time when you can work with the package here again. |
Webpack 5 officially reaches the release candidate: https://github.com/webpack/webpack/releases/tag/v5.0.0-rc.0 @kisenka It would be nice this PR gets merged |
This worked for me. Looking forward to a release version. |
This branch has worked great for me with webpack 5. |
merge please. |
@christophstockinger @mayako21126 I tried to fork the repo with the changes from this PR. Unfortunately, the bootstrap# git clone # from https://github.com/mayako21126/svg-sprite-loader
# git checkout add-support-webpack5
$ sh scripts/build.sh
#...
Running node v12.18.1 (npm v6.14.5)
yarn install v1.22.4
info No lockfile found.
[1/4] Resolving packages...
warning [email protected]: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^10.0.0,^11.0.0,^12.0.0,>=14.0.0". Got "12.18.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
webpack-5 env installed Update: release$ yarn release
$ node scripts/build-runtime.js
/.../svg-sprite-loader/scripts/build-examples-dll.js:32
throw new Error(msgs.join('\n'));
^
Error: BUILD EXAMPLES ERRORS
Module not found: Error: Can't resolve 'svg-sprite-loader' in '/.../svg-sprite-loader/examples/browser-sprite-with-dll' |
@rohrlaf, I don't know what "private package on Github" means, and how to make it, so this is what I did. It may be a bit incorrect or suboptimal, but worked for me.
Note, my git server uses http. |
Can this be merged? |
@shameleo Thanks for your help, I tried to make it work but still not running for me. Replaced With "private package" I meant publishing it on a private registry, as we can not alter $ git clone [email protected]:mayako21126/svg-sprite-loader.git
$ git checkout add-support-webpack5
$ npm/yarn install
$ npm run/yarn build:runtime
# change name to "@myorg/svg-sprite-loader" and "publishConfig" in package.json
$ npm login # login into the private registry
$ npm/yarn publish Build errorNevertheless, for the With patch by @mayako21126:
With current
|
It looks like there's a #365 pull request that's also supposed to fix this library on Webpack 5. Not sure which pull request is better 🙂 |
@Slashgear, Sorry to bother you, but are you still a maintainer for this repository? |
@Bosch-Eli-Black thanks for pointing this out. #365 is based on |
Ah, cool; I hadn't noticed that difference. Are you sure the build is hung and isn't just still running? I know I've seen some people reporting that upgrading to Webpack 5 increased their projects' initial build times. Just curious what might happen if you left the build running for, say, 15 minutes XD |
do you installed nvm? |
@mayako21126 @Bosch-Eli-Black, @KingSora and I found the culprit. As we were trying to publish the forked patches for |
If this PR is good, I'd love to see it merged and released. |
What is the full package name for that fork, which works with Webpack 5? (I'd like to use it, until the official |
Sorry to disappoint, my company policies did not allow me to publish an open source package. We only have it available from our private registry. How I did it:
|
Webpack Maintainer here 👋 can we get some official movement or merges on this project? If dead then i can fork it and maintain a copy. But there needs to be some update since users seem to have patched the problems it had |
Can't wait to see it. |
@ScriptedAlchemy considering the last commit to master was over 6 months ago and (as far as I can tell) there hasn't been any signs of movement on getting this OK'd and merged, I'm starting to think forking might be our only option here 🙁 |
Hey, folks! Unfortunately, the maintainer of this project passed away. Currently, I need some time to get into and check pull requests. I'll start with this PR next week. |
@d3x42 Damn. I am so, so sorry to hear that - my sincere condolences. 😞 Take all the time you need (and really appreciate you letting us know). |
That's really sad to hear 😟 @kisenka seemed like a nice guy, on the occasions that I had to talk to him. |
Looking forward to seeing this get in! |
I beg of you, just merge this PR already, it's been like half a year. |
Thank you, very appreciated. |
Thank you for merging this but it looks like the CI is stuck and I guess we won't get a release until it passes? |
@matthewma7 Yes, build already queued. |
@kisenka Please review and publish a release with this feature. |
@SevenOutman the guy is dead, bro. He's not going to publish anything. Read the message history above. |
@shakhbulatgaz sorry to hear that :( |
Currently, I didn't have access to publish it in npm, so I'll try to find someone who could grant it. After that, I'll publish the release. |
If the maintainer of an npm package is deceased, NPM support can help transfer ownership to a new maintainer. I saw this happen recently with the In this case, it may be easier (eg. less of a waiting delay) since the package repo was hosted under an organization, rather than an individual's Github account. |
5.1.1 published |
Great job, but plugin have dependency from incompatible version of svg-sprite-loader/package.json Line 38 in d5ddfef
|
when i upgrade to v5.1.1, this error still exist. @d3x42 @rohrlaf
|
@ogonkov Fell free to add PR with updates |
|
What kind of change does this PR introduce? (bugfix, feature, docs update, improvement)
feature
What is the current behavior? (You can also link to an open issue here)
it doesn't work with Webpack5
What is the new behavior (if this is a feature change)?
Make it compatible with Webpack5
Does this PR introduce a breaking change?
no
Please check if the PR fulfills contributing guidelines
ok
but some Webpack5 changes caused the test to be error
for example “MultiEntryPlugin”