{"library":"named-exports-db","title":"named-exports-db","description":"A database of packages that require named exports when bundled with Rollup's @rollup/plugin-commonjs. It lists packages that export CommonJS modules where named exports cannot be statically analyzed, necessitating explicit configuration. Version 0.1.6 is the latest and only stable release; the package is largely a reference list with no active development. Differentiator: serves as a community-maintained lookup for Rollup bundling issues, unlike alternatives that are runtime-based or plugin-specific.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install named-exports-db"],"cli":null},"imports":["import namedExportsDb from 'named-exports-db'","import { getNamedExports } from 'named-exports-db'","import { db } from 'named-exports-db'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { getNamedExports, db } from 'named-exports-db';\n\n// Check if a package is in the database\nconst pkgName = 'some-commonjs-package';\nif (db.has(pkgName)) {\n  const exports = getNamedExports(pkgName);\n  console.log(`Named exports for ${pkgName}:`, exports);\n} else {\n  console.log(`${pkgName} not found. You may need to manually configure named exports in @rollup/plugin-commonjs.`);\n}\n\n// Example for Rollup configuration\n// rollup.config.js\n// import commonjs from '@rollup/plugin-commonjs';\n// export default {\n//   plugins: [commonjs({ namedExports: { [pkgName]: exports } })]\n// };","lang":"javascript","description":"Shows how to lookup a package's named exports and integrate with Rollup's commonjs plugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}