Registry / devops / phoenix-build

phoenix-build

JSON →
library4.0.3jsnpmunverified

A collection of shared build libraries for Phoenix projects at Walmart Labs, version 4.0.3. It provides common build configurations and utilities for Node.js packages, designed for internal use in the Phoenix ecosystem. The release cadence is irregular, tied to project needs. Its key differentiator is tight integration with Walmart's internal tooling, but it lacks public documentation and widespread adoption due to its internal focus.

npm install phoenix-build
INSTALL
IMPORT
SIG · PHOENIX-BUILD
P
phoenix-build
devopsjavascriptv4.0.3
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.

phoenix-build
import phoenixBuild from 'phoenix-build'
const phoenixBuild = require('phoenix-build');
Package uses ES modules since version 4.0.0. CommonJS require might fail with default export.
build
import { build } from 'phoenix-build'
import build from 'phoenix-build'
Named export for the primary build function.
config
import { config } from 'phoenix-build'
import config from 'phoenix-build'
Named export for configuration object.

Shows how to import and use the build function with basic options.

import { build } from 'phoenix-build'; async function runBuild() { try { const result = await build({ entry: './src/index.js', output: './dist/bundle.js', minify: true, sourcemap: true }); console.log('Build succeeded:', result); } catch (err) { console.error('Build failed:', err); } } runBuild();
Debug
Known issues
breakingv4.0.0 migrated to ESM only; CJS require() will fail unless using dynamic import.
fix
Use ES import syntax like 'import phoenixBuild from "phoenix-build"' or use dynamic import.
affects: >=4.0.0
deprecatedThe 'minify' option has been deprecated in v3.2.0; use 'optimization.minimize' instead.
fix
Pass { optimization: { minimize: true } } instead of { minify: true }.
affects: >=3.2.0 <4.0.0
gotchaPackage is intended for internal Walmart use; it may lack community support and documentation.
fix
Consider using well-known build tools like Webpack or Rollup for external projects.
affects: all
gotchaNode.js engine requirement is >= 0.6, but the package may not work on Node.js < 12 due to ESM features.
fix
Use Node.js >= 12 for v4.0.0+; for older versions, stick to v3.x series.
affects: >=4.0.0
Errors
Common errors & fixes
SyntaxError: Cannot use import statement outside a module
Using ESM import in a CommonJS script without ESM support.
fix
Add "type": "module" to package.json or use .mjs extension for the script.
TypeError: phoenixBuild is not a function
Calling default import as a function but expecting a named export.
fix
Use named import: import { build } from 'phoenix-build'.
Upgrade
Version history
4.0.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
phoenix-build — npm install phoenix-build · libregistry