-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Chore: Webclipper: Migrate build system to Webpack 5 #9670
Chore: Webclipper: Migrate build system to Webpack 5 #9670
Conversation
That looks good, thanks for updating this and getting rid of create-react-app! |
@personalizedrefrigerator, I'm not sure if this is related but I can no longer start the plugin in development mode. On Firefox I'm getting this: And on Chrome:
It looks like this file should be copied on postinstall but it's not doing it for me, even after |
Try running For me, |
That's true, yarn doesn't run the postinstall script when no new package has been added: yarnpkg/yarn#5476 (comment) I think that's because of this kind of issue that I replaced most postinstall scripts by "build" scripts that can be called explicitly. With unfixed issues like this I'm wondering if Yarn is becoming abandonware (https://github.com/yarnpkg/yarn/graphs/contributors) and whether we should start considering a different package manager. |
It looks like that's the graph for the 1.x version of Yarn. The https://github.com/yarnpkg/berry/graphs/contributors |
Oh indeed, that's much better. I guess it doesn't help that Google insists on only ever showing results from |
Summary
app-clipper
to Webpack 5exports
is not defined")Notes
To upgrade to Webpack 5, this pull request migrates away from our fork of
create-react-app
.create-react-app
seems to be unmaintained and, for building the webclipper, a custom Webpack configuration seems to be much simpler.Testing
app-clipper
as a development plugin (throughabout:debugging
in Firefox)This has been successfully tested in Firefox 121.0 and Chromium 120 with https://babeljs.io/docs/babel-plugin-transform-modules-commonjs