Registry / devops / primitive-script-bundler

primitive-script-bundler

JSON →
library1.0.16jsnpmunverified

A minimal JavaScript bundler inspired by Webpack, designed for simple projects that need to concatenate multiple script files into a single bundle. Version 1.0.16 is the latest stable release, with infrequent updates. Unlike Webpack or Rollup, it offers no module resolution, tree-shaking, or code splitting; it simply concatenates files in order. Suitable for small hobby projects but not for production use. Not actively maintained.

npm install primitive-script-bundler
INSTALL
IMPORT
SIG · PRIMITIVE-SCRIPT-B
P
primitive-script-bundler
devopsjavascriptv1.0.16
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.

bundle
const bundle = require('primitive-script-bundler');
import bundle from 'primitive-script-bundler';
Package is CommonJS-only; does not support ESM imports.
config
// No explicit import, uses config.json in project root
Configuration is read from a config.json file automatically; no API to pass config programmatically.
runBuild
bundle();
bundle.bundle();
The default export is a function; call it directly.

Shows how to configure files and output path via config.json and run the bundler.

// config.json { "files": ["src/a.js", "src/b.js"], "output": "dist/bundle.js" } // index.js const bundle = require('primitive-script-bundler'); bundle();
primitive-script-bundler --version
Debug
Known issues
gotchaThe package does not resolve import/require statements. Files are concatenated exactly in the order specified in config.json.
fix
Manually order your files so that dependencies appear before dependents.
affects: *
gotchaThe output bundle is not minified. You must use an external minifier for production.
fix
Pipe bundle through tools like terser or uglify-js.
affects: *
gotchaNo support for TypeScript, JSX, or any transpilation. Only plain JavaScript.
fix
Pre-process files with Babel or TypeScript compiler before bundling.
affects: *
gotchaThe package is not actively maintained; last update was over two years ago.
fix
Consider alternatives like Webpack, Rollup, or esbuild for active support.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'primitive-script-bundler'
Package not installed or missing from node_modules.
fix
Run 'npm install primitive-script-bundler' in your project root.
TypeError: bundle is not a function
Incorrect import; likely used default import with ESM syntax.
fix
Use const bundle = require('primitive-script-bundler'); then bundle();
Error: Config file not found: config.json
The config.json file is missing from the root directory where the script is run.
fix
Create a config.json file in the same directory with the required files and output fields.
Upgrade
Version history
1.0.16latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
primitive-script-bundler — npm install primitive-script-bundler · libregistry