
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
vite-plugin-lib
Advanced tools
Vite plugin for build configuration, automatic aliases, and type declarations.
Vite plugin for build configuration, automatic aliases, and type declarations.
tsconfig.json
yarn add -D vite-plugin-lib
This highly opinionated all-in one Vite plugin enables automatic alias configuration based on tsconfig.json
paths, library export configuration, and type declaration generation.
import { defineConfig } from 'vite'
import { tsconfigPaths } from 'vite-plugin-lib'
export default defineConfig({
plugins: [tsconfigPaths()],
})
The library
plugin includes the alias
plugin, configures build settings, and generates .d.ts
files.
import { defineConfig } from 'vite'
import { library } from 'vite-plugin-lib'
export default defineConfig({
plugins: [
library({
entry: 'src/index.ts', // file name determines output file names, default is 'src/index.ts'
formats: ['es'], // optional, default is ['es']
name: 'YourGlobalUMDName', // optional if format does not include 'umd' or 'iife'
// optional, default externalizes all builtin modules, node_modules, dependencies, and peerDependencies
bundle: {
builtin: false,
dependencies: false,
devDependencies: true,
peerDependencies: false,
exclude: [], // individual packages or modules to externalize
include: [], // override the default externalization for individual packages or modules
nodeModules: false,
},
manifest: 'package.json', // relative path to package.json, default is package.json,
tsconfig: 'tsconfig.json', // relative path to tsconfig.json, default is tsconfig.json
}),
],
})
FAQs
Vite plugin for build configuration, automatic aliases, and type declarations.
The npm package vite-plugin-lib receives a total of 152 weekly downloads. As such, vite-plugin-lib popularity was classified as not popular.
We found that vite-plugin-lib demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.