{"id":21564,"library":"metal-tools-build-rollup","title":"Metal Tools Build Rollup","description":"Build tool for transpiling and bundling Metal.js ES6 JavaScript files using Rollup. Version 2.0.6 is the latest stable release for the deprecated Metal.js framework. It leverages Rollup's tree-shaking and module bundling to produce optimized browser-compatible bundles. Key differentiators: designed specifically for Metal.js ecosystem, supports global variable generation for browser globals, and integrates with other Metal build tools. However, Metal.js is no longer actively maintained; users should consider migrating to modern frameworks. The package has low maintenance cadence and limited documentation.","status":"deprecated","version":"2.0.6","language":"javascript","source_language":"en","source_url":"https://github.com/metal/metal-tools-build-rollup","tags":["javascript","metal","globals"],"install":[{"cmd":"npm install metal-tools-build-rollup","lang":"bash","label":"npm"},{"cmd":"yarn add metal-tools-build-rollup","lang":"bash","label":"yarn"},{"cmd":"pnpm add metal-tools-build-rollup","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only package; CommonJS require will fail.","wrong":"const build = require('metal-tools-build-rollup')","symbol":"build","correct":"import build from 'metal-tools-build-rollup'"},{"note":"Default export is the function; namespace import is alternative.","wrong":"import metalBuild from 'metal-tools-build-rollup'","symbol":"build","correct":"import * as metalBuild from 'metal-tools-build-rollup'"},{"note":"Dynamic import for CJS-like usage.","wrong":"const { default: build } = require('metal-tools-build-rollup')","symbol":"build","correct":"const build = (await import('metal-tools-build-rollup')).default"}],"quickstart":{"code":"import build from 'metal-tools-build-rollup';\nimport path from 'path';\n\nconst config = {\n  entry: path.resolve('src/index.js'),\n  dest: path.resolve('build/bundle.js'),\n  format: 'iife',\n  moduleName: 'MyApp',\n  globalName: 'myApp',\n  sourceMap: true\n};\n\nbuild(config).then(() => {\n  console.log('Build complete');\n}).catch(err => {\n  console.error('Build failed:', err);\n});","lang":"javascript","description":"Build a Metal.js ES6 file into an IIFE bundle with Rollup."},"warnings":[{"fix":"Migrate to modern bundlers like Webpack, Rollup standalone, or Vite.","message":"Metal.js framework is deprecated; metal-tools-build-rollup is unmaintained.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use ES import syntax (import/build from 'metal-tools-build-rollup') or use dynamic import.","message":"Version 2.0.0 changed to ESM-only; CommonJS require() breaks.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use Node 10 or earlier, or upgrade to a maintained alternative.","message":"Requires Node >=0.12.0; may not work with modern Node versions due to outdated dependencies.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install metal-tools-build-rollup' or check your package.json.","cause":"Package not installed or missing from node_modules.","error":"Error: Cannot find module 'metal-tools-build-rollup'"},{"fix":"Add 'type': 'module' to your package.json, or rename file to .mjs.","cause":"Using ESM import without 'type': 'module' in package.json.","error":"SyntaxError: Cannot use import statement outside a module"},{"fix":"Use 'import build from 'metal-tools-build-rollup' instead of 'import * as build'.","cause":"Incorrect import: using namespace import instead of default.","error":"TypeError: build is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}