{"id":15602,"library":"esbuild-linux-mips64le","title":"esbuild Linux MIPS64LE Native Binary","description":"esbuild is an extremely fast JavaScript bundler and minifier, primarily developed in Go, excelling at processing JavaScript, TypeScript, JSX, CSS, JSON, and other web assets with remarkable speed. It's a popular choice for accelerating build pipelines and development server hot-reloading due to its performance. The project maintains a rapid release cadence, with frequent minor and patch updates, alongside occasional major releases that may introduce significant new features or breaking changes. This specific package, `esbuild-linux-mips64le`, provides the pre-compiled native binary for Linux MIPS 64-bit Little Endian architectures. It serves as a critical runtime dependency for the main `esbuild` npm package when installed on compatible MIPS64LE systems, enabling the JavaScript wrapper to execute the native bundler logic. While this binary package is at version `0.15.18`, the current stable version of the core `esbuild` package is `0.20.24`.","status":"active","version":"0.15.18","language":"javascript","source_language":"en","source_url":"https://github.com/evanw/esbuild","tags":["javascript"],"install":[{"cmd":"npm install esbuild-linux-mips64le","lang":"bash","label":"npm"},{"cmd":"yarn add esbuild-linux-mips64le","lang":"bash","label":"yarn"},{"cmd":"pnpm add esbuild-linux-mips64le","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This package provides the architecture-specific native binary runtime for the main `esbuild` JavaScript bundler npm package.","package":"esbuild","optional":true}],"imports":[{"note":"The `build` API is asynchronous and is the primary entry point for bundling files. While `require` works, ESM `import` is the idiomatic modern approach.","wrong":"const { build } = require('esbuild')","symbol":"build","correct":"import { build } from 'esbuild'"},{"note":"The `transform` API is used for processing individual code strings or files without full bundling, often for runtime compilation or server-side rendering.","wrong":"const esbuild = require('esbuild'); esbuild.transform(code)","symbol":"transform","correct":"import { transform } from 'esbuild'"},{"note":"Used to format diagnostic messages (errors or warnings) returned by esbuild's build or transform operations into human-readable strings.","wrong":"import esbuild from 'esbuild'; esbuild.formatMessages(...)","symbol":"formatMessages","correct":"import { formatMessages } from 'esbuild'"}],"quickstart":{"code":"import { build } from 'esbuild';\nimport path from 'node:path';\nimport process from 'node:process';\nimport { writeFileSync, mkdirSync } from 'node:fs';\n\nconst entryPoint = 'src/index.ts';\nconst outputDir = 'dist';\nconst outputFileName = 'bundle.js';\n\n// Create dummy entry points for the quickstart\nmkdirSync('src', { recursive: true });\nwriteFileSync(entryPoint, `\nimport { add } from './utils';\n\nconsole.log('Hello from esbuild!');\nconsole.log('2 + 3 =', add(2, 3));\n`);\nwriteFileSync('src/utils.ts', `\nexport function add(a: number, b: number): number {\n  return a + b;\n}\n`);\n\nasync function runBuild() {\n  try {\n    await build({\n      entryPoints: [entryPoint],\n      bundle: true,\n      minify: process.env.NODE_ENV === 'production',\n      sourcemap: process.env.NODE_ENV !== 'production',\n      outfile: path.join(outputDir, outputFileName),\n      platform: 'node', // Can be 'browser', 'node', or 'neutral'\n      target: 'es2022',\n      logLevel: 'info',\n      // Example plugin usage:\n      // plugins: [{\n      //   name: 'example',\n      //   setup(build) {\n      //     build.onResolve({ filter: /\\./ }, args => {\n      //       if (args.path === 'foo') return { path: args.path, namespace: 'foo-ns' };\n      //     });\n      //     build.onLoad({ filter: /foo/, namespace: 'foo-ns' }, () => ({\n      //       contents: 'export default \"bar\";',\n      //       loader: 'js',\n      //     }));\n      //   },\n      // }],\n    });\n    console.log(`Build successful: ${path.join(outputDir, outputFileName)}`);\n  } catch (e) {\n    console.error('Build failed:', e);\n    process.exit(1);\n  }\n}\n\nrunBuild();","lang":"typescript","description":"Demonstrates a basic esbuild bundling operation, compiling a TypeScript entry point with a utility module into a single JavaScript file, with minification and sourcemaps toggled by NODE_ENV."},"warnings":[{"fix":"Update your `package.json` to pin `esbuild` to an exact version or use a `~X.Y.Z` version range. Review the esbuild changelog for detailed migration steps for new major versions.","message":"esbuild v0.27.0 introduced deliberate backwards-incompatible changes. To prevent unexpected build failures or behavior, it is strongly recommended to pin the exact version of `esbuild` in your `package.json` (e.g., `\"esbuild\": \"0.20.24\"`) or use a patch-only version range (`~0.20.0`).","severity":"breaking","affected_versions":">=0.27.0"},{"fix":"For most users, `npm install esbuild` or `yarn add esbuild` is sufficient. Let the main `esbuild` package manage the installation of the appropriate platform-specific binary for your environment.","message":"This package (`esbuild-linux-mips64le`) is a platform-specific native binary. Users should typically install the main `esbuild` package, which automatically detects and installs the correct binary for the host system. Directly installing this package is only for specific cross-compilation or advanced use cases and can lead to 'No matching esbuild binary found' errors if installed on an incompatible platform.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Upgrade your Node.js environment to version 12 or newer. The `nvm` (Node Version Manager) utility is recommended for easily managing multiple Node.js versions.","message":"esbuild's JavaScript wrapper requires Node.js version 12 or higher. Attempting to run esbuild with older Node.js versions may result in execution errors or unexpected behavior.","severity":"gotcha","affected_versions":"<12"}],"env_vars":null,"last_verified":"2026-04-21T00:00:00.000Z","next_check":"2026-07-20T00:00:00.000Z","problems":[{"fix":"Ensure you have installed the main `esbuild` package, allowing it to select the correct platform-specific binary. If cross-compiling or using a non-standard environment, verify that the correct `esbuild-xxx-yyy` package is installed and accessible, or specify the binary path via environment variables.","cause":"The esbuild JavaScript wrapper could not find or execute its corresponding native binary for the detected operating system and architecture.","error":"Error: No matching esbuild binary found for this platform."},{"fix":"For ES Modules, use `import` statements instead of `require()`. Ensure your `package.json` has `\"type\": \"module\"` if you intend for `.js` files to be ESM, or configure esbuild's `format` option (e.g., `esm` or `cjs`) to match your target environment. Conversely, if targeting CJS, avoid top-level `import` statements.","cause":"Attempting to use CommonJS `require()` syntax in a JavaScript file that Node.js or esbuild is interpreting as an ES Module.","error":"ReferenceError: require is not defined in ES module scope"},{"fix":"Verify that the dependency is installed (`npm install module-name` or `yarn add module-name`). Check the import path for correctness. If using path aliases (e.g., in `tsconfig.json`), ensure esbuild is configured to interpret them, potentially via an esbuild plugin or by pointing esbuild to your `tsconfig.json`.","cause":"esbuild failed to locate an imported module, often due to a missing `node_modules` dependency, an incorrect relative path, or an unconfigured path alias.","error":"Could not resolve 'module-name'"}],"ecosystem":"npm"}