Registry / devops / minipac

minipac

JSON →
library3.0.5jsnpmunverified

Minimalistic web application bundler. Version 3.0.5 is the latest stable release. Provides a lightweight alternative to large bundlers like webpack or Rollup, focusing on simplicity and minimal configuration. Suitable for small to medium-sized projects. No frequent updates; maintained as a stable tool.

npm install minipac
INSTALL
IMPORT
SIG · MINIPAC
M
minipac
devopsjavascriptv3.0.5
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

minipac
import minipac from 'minipac'
const minipac = require('minipac')
ESM-only module; default export is the bundler function.
bundle
import { bundle } from 'minipac'
const bundle = require('minipac').bundle
Named export `bundle` available since v3.
Config
import type { Config } from 'minipac'
import { Config } from 'minipac'
Type import for TypeScript users; Config is not a runtime value.

Shows both default and named imports, then bundles an entry point to output file.

import minipac from 'minipac'; import { bundle } from 'minipac'; const config = { entry: './src/index.js', output: './dist/bundle.js', }; bundle(config).then(() => console.log('Bundled!')) .catch(err => console.error(err));
minipac --version
Debug
Known issues
breakingDefault export changed from function to object in v3.
fix
Use named export `bundle` instead of calling default export directly.
affects: >=3.0.0
deprecated`minipac({...})` sync API removed in v3.
fix
Use `bundle(config)` which returns a Promise.
affects: >=3.0.0
gotchaRequire() is not supported; package is ESM-only.
fix
Use `import` statements. If using CommonJS, use dynamic import: `import('minipac')`.
affects: >=3.0.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/minipac not supported.
Package is ESM-only, cannot be required().
fix
Use `import minipac from 'minipac'` instead of `require('minipac')`.
TypeError: minipac is not a function
Default export changed to an object in v3; calling it as function fails.
fix
Use `import { bundle } from 'minipac'` and call `bundle(config)`.
Upgrade
Version history
3.0.5latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
minipac — npm install minipac · libregistry