{"id":18561,"library":"minipac","title":"Minipac","description":"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.","status":"active","version":"3.0.5","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/TheLudd/minipac","tags":["javascript"],"install":[{"cmd":"npm install minipac","lang":"bash","label":"npm"},{"cmd":"yarn add minipac","lang":"bash","label":"yarn"},{"cmd":"pnpm add minipac","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only module; default export is the bundler function.","wrong":"const minipac = require('minipac')","symbol":"minipac","correct":"import minipac from 'minipac'"},{"note":"Named export `bundle` available since v3.","wrong":"const bundle = require('minipac').bundle","symbol":"bundle","correct":"import { bundle } from 'minipac'"},{"note":"Type import for TypeScript users; Config is not a runtime value.","wrong":"import { Config } from 'minipac'","symbol":"Config","correct":"import type { Config } from 'minipac'"}],"quickstart":{"code":"import minipac from 'minipac';\nimport { bundle } from 'minipac';\n\nconst config = {\n  entry: './src/index.js',\n  output: './dist/bundle.js',\n};\n\nbundle(config).then(() => console.log('Bundled!'))\n  .catch(err => console.error(err));","lang":"javascript","description":"Shows both default and named imports, then bundles an entry point to output file."},"warnings":[{"fix":"Use named export `bundle` instead of calling default export directly.","message":"Default export changed from function to object in v3.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Use `bundle(config)` which returns a Promise.","message":"`minipac({...})` sync API removed in v3.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"Use `import` statements. If using CommonJS, use dynamic import: `import('minipac')`.","message":"Require() is not supported; package is ESM-only.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use `import minipac from 'minipac'` instead of `require('minipac')`.","cause":"Package is ESM-only, cannot be required().","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/minipac not supported."},{"fix":"Use `import { bundle } from 'minipac'` and call `bundle(config)`.","cause":"Default export changed to an object in v3; calling it as function fails.","error":"TypeError: minipac is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}