
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@surmon/libundler
Advanced tools
📦 Universal JavaScript library bundler, powered by Rollup.
npm install @surmon-china/libundler --save-dev
You can also use yarn or pnpm.
build script to package.json"scripts": {
"build": "libundler"
}
You can also use the command b.
yarn build
By default, you do not need to specify configuration file, libundler will generate a nearly perfect configuration for the bundle according to your package.json.
But if you have more specific needs, you can create libundler.config.js or libundler.config.ts in your project root.
LibundlerConfigObjectLibundlerConfigObject[](defaultRollupConfig) => RollupConfigconfig example projects:
cjs format configesm format configobject config example:
// libundler.config.js
/** @type {import('@surmon-china/libundler/lib/interface').LibundlerConfigObject} */
module.exports = {
entry: 'src/index.js',
// ...
}
array config example:
// libundler.config.js
/** @type {import('@surmon-china/libundler/lib/interface').LibundlerConfigArray} */
module.exports = [
{
entry: 'src/index.ts',
// ...
},
{
entry: 'src/entry.ts',
// ...
},
]
function config example:
// libundler.config.js
/** @type {import('@surmon-china/libundler/lib/interface').LibundlerConfigFn} */
module.exports = (rollupConfig) => {
// overwrite the Rollup config
rollupConfig.plugins.push(/* ... */)
// ...
return rollupConfig
}
esm config example:
// libundler.config.js
export default {
entry: 'src/index.js',
// ...
}
.ts config example:
// libundler.config.ts
import { defineConfig } from '@surmon-china/libundler'
export default defineConfig({
entry: 'src/index.js',
// ...
})
const libundler = require('@surmon-china/libundler')
libundler
.bundle({
/* LibundlerConfig */
})
.then((result) => {
console.log('bundle success', result)
})
.catch((error) => {
console.log('bundle error', error)
})
yarn dev
yarn lint
yarn build
yarn release
Detailed changes for each release are documented in the release notes.
FAQs
Universal JavaScript library bundler
The npm package @surmon/libundler receives a total of 0 weekly downloads. As such, @surmon/libundler popularity was classified as not popular.
We found that @surmon/libundler 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.