So to get started building some Svelte components into MuckRock, I first needed to make sure that the Node.js stack was up to date. Boy, it sure wasn't!
This update:
Sets the Node version to 18.16, the most recent LTS release.
Upgrades Webpack from version 1 to version 5. This also slims down and modernizes the webpack.config file.
Upgrades the django-webpack-loader to work with Webpack 5.
Removes the lockdown utility library with the built-in and recommended npm shrinkwrap
and updates lots of dependencies, especially devDependencies, to their @latest version
I've done some integration testing on the development server to make sure that there's no errors and existing JS-driven functionality like autocomplete, rich text editing, and jQuery continue to work.
So to get started building some Svelte components into MuckRock, I first needed to make sure that the Node.js stack was up to date. Boy, it sure wasn't!
This update:
django-webpack-loader
to work with Webpack 5.lockdown
utility library with the built-in and recommendednpm shrinkwrap
@latest
versionI've done some integration testing on the development server to make sure that there's no errors and existing JS-driven functionality like autocomplete, rich text editing, and jQuery continue to work.