-
Notifications
You must be signed in to change notification settings - Fork 6
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
Doesn't work with webpack 5 (webpack/lib/ParserHelpers
doesn't exist)
#27
Comments
Ahh, shit. Thanks for pointing out! Time to pull updates from the plugin that this is based on. Need to find a bit of time for that as there will likely be a lot of merge conflicts… |
I'll actually be sending a small PR/diff with Webpack 5 support in a few minutes, as a quick band-aid. The file still exists but it was moved elsewhere. |
FWIW, it's been renamed to fixed code for this import is here: let ParserHelpers;
try {
ParserHelpers = require('webpack/lib/javascript/JavascriptParserHelpers'); // Webpack 5
} catch (e) {}
ParserHelpers = ParserHelpers || require('webpack/lib/ParserHelpers'); // Webpack 4 I'd put in a PR for just this fix, but there's a few updates beyond this which likely need doing as well. Going to poke around and see if I can get it running locally, if I have time I'll put a PR up EDIT: PR is up, #33 - I made just the changes from the base repo which targeted webpack 5. |
It seems that a private API from
webpack
is being used here:threads-plugin/src/index.js
Line 19 in 1a1b070
This doesn't exist in Webpack 5 any more.
The text was updated successfully, but these errors were encountered: