Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
electrode-archetype-webpack-dll
Advanced tools
Electrode Webpack DLL Archetype
This archetype helps with creating a npm module that releases JavaScript webpack DLLs.
The DLL package then can be consumed by an Electrode application based on the Electrode app archetype.
Other common DLL consumption support:
node_modules
, Electrode app archetype warn you.Steps to create a module for publishing DLLs:
$ mkdir my-react-dll
$ cd my-react-dll
$ npm init --yes
$ npm install --save react react-dom electrode-archetype-webpack-dll
$ npm install --save-dev electrode-archetype-webpack-dll-dev
Then add these files:
xclap.js
:
require("electrode-archetype-webpack-dll")();
index.js
:
module.exports = {
entry: {
react: ["./src/dll-react.js"]
}
};
Where
src/dll-react.js
should import the modules that should be included in the DLL namedreact
.
Add these to package.json
:
{
"main": "index.js",
"scripts": {
"prepare": "clap build",
"prepublishOnly": "npm run cdn-publish",
"prepack": "clap npm:prepack",
"postpack": "clap npm:postpack",
"cdn-publish": "my-cdn-publish-task && clap save-cdn-map --file=cdn-assets.json"
}
}
my-cdn-publish-task
should upload the production JS bundle to your CDN server and create a file cdn-assets.json
that map the bundle filename to the CDN URL.FAQs
Electrode Archetype to build webpack DLLs
The npm package electrode-archetype-webpack-dll receives a total of 4 weekly downloads. As such, electrode-archetype-webpack-dll popularity was classified as not popular.
We found that electrode-archetype-webpack-dll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.