Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@abstract-money/bundle-require
Advanced tools
This package is a fork of egoist/bundle-require version 3.1.2 with the corrected esbuild
peer dependency as one breaks when used as peer in the projects that depend on the esbuild<0.17.0
.
Projects like Vite need to load config files provided by the user, but you can't do it with just require()
because it's not necessarily a CommonJS module, it could also be a .mjs
or even be written in TypeScript, and that's where the bundle-require
package comes in, it loads the config file regardless what module format it is.
node_modules
are excluded because it's problematic to try to bundle it
__filename
, __dirname
and import.meta.url
are replaced with source file's value instead of the one from the temporary output fileesm
format if possible (for .ts
, .js
input files)import()
if possiblenpm i @abstract-money/bundle-require esbuild
esbuild
is a peer dependency.
import { bundleRequire } from '@abstract-money/bundle-require'
const { mod } = await bundleRequire({
filepath: './project/vite.config.ts',
})
https://www.jsdocs.io/package/@abstract-money/bundle-require
Projects that use @abstract-money/bundle-require:
MIT © EGOIST
FAQs
bundle and require a file
The npm package @abstract-money/bundle-require receives a total of 0 weekly downloads. As such, @abstract-money/bundle-require popularity was classified as not popular.
We found that @abstract-money/bundle-require demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.