Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
corejs-upgrade-webpack-plugin
Advanced tools
a webpack plugin that transforms core-js v2 paths to core-js v3 paths
I wrote this to ensure the latest version of core-js is used everywhere in an application.
Sometimes you're depending on components or libraries that haven't updated yet, and this can increase bundle-size, or even break your app if these dependencies didn't have core-js as a dependency themselves.
This Webpack Plugin will essentially do a search and replace on all requires and if the require path matches /core-js/
it will try and resolve the require.
If it can, nothing happens. If the resolve fails (this would normally break your app) this plugin tries to map the old core-js path to the new path structure, and resolve that instead.
This plugin will allow you to specify a resolveFrom
option, so you can resolve core-js from any path you'd like.
This is useful if you know there are going to be multiple core-js version installed, and you want to pick a specific one installed somewhere.
yarn add corejs-upgrade-webpack-plugin
simple example:
import CoreJSUpgradeWebpackPlugin from 'corejs-upgrade-webpack-plugin';
// add this to your webpack.plugins config
new CoreJSUpgradeWebpackPlugin();
example with options:
import CoreJSUpgradeWebpackPlugin from 'corejs-upgrade-webpack-plugin';
// add this to your webpack.plugins config
new CoreJSUpgradeWebpackPlugin({
resolveFrom: [process.cwd()],
});
FAQs
a webpack plugin that transforms core-js v2 paths to core-js v3 paths
The npm package corejs-upgrade-webpack-plugin receives a total of 103,922 weekly downloads. As such, corejs-upgrade-webpack-plugin popularity was classified as popular.
We found that corejs-upgrade-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.