Registry / devops / create-bundler

create-bundler

JSON →
library0.4.8jsnpmunverified

A scaffolding tool that creates pre-configured projects with zero-config support for ES6+, TypeScript, Less/Sass/CSS Modules, Tailwind CSS, file-system routing, and bundling for web and plugins. Current stable version is 0.4.8. It simplifies project initialization by providing an out-of-the-box build setup, similar to create-react-app but more opinionated for Chinese developers (Chinese documentation). Primarily used via pnpm.

npm install create-bundler
INSTALL
IMPORT
SIG · CREATE-BUNDLER
C
create-bundler
devopsjavascriptv0.4.8
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.

create-bundler
pnpm create bundler
npm create bundler
The tool is designed to be run via pnpm create, not npm or yarn. Using npm create may fail or install a different package.
project structure
cd <project-name> && pnpm install && pnpm start
cd <project-name> && npm start
After scaffolding, use pnpm to install dependencies and start the dev server, not npm.
bundler API
import { createBundler } from 'create-bundler';
const createBundler = require('create-bundler');
The package is ESM-only since v0.4.0. CommonJS require will not work.

Scaffold a new project with create-bundler, install dependencies, and start the development server.

# Ensure pnpm is installed: npm install -g pnpm pnpm create bundler my-project cd my-project pnpm install pnpm start # Dev server at http://localhost:3000
create-bundler --version
Debug
Known issues
gotchaRequires pnpm as the package manager. npm or yarn may not work correctly.
fix
Install pnpm globally: npm install -g pnpm
affects: >=0.0.0
breakingESM-only since version 0.4.0. CommonJS require will fail.
fix
Use import syntax. If using CommonJS, stick to version <0.4.0.
affects: >=0.4.0
deprecatedLegacy API (if any) removed in v0.4.0.
fix
Update imports to match the new API.
affects: >=0.4.0
gotchaChinese-only documentation. English users may find it hard to troubleshoot.
fix
Consider using a translation tool or alternative scaffolding tool like create-vite.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'create-bundler'
Running npm create bundler instead of pnpm create bundler.
fix
Use pnpm create bundler or install globally: pnpm add -g create-bundler then run create-bundler
SyntaxError: Unexpected token 'export'
Using require() on an ESM-only package.
fix
Change to import syntax or downgrade to version <0.4.0.
ERR! pnpm create bundler failed: spawn pnpm ENOENT
pnpm is not installed or not in PATH.
fix
Install pnpm: npm install -g pnpm
TypeError: createBundler is not a function
Using wrong import or call signature.
fix
Check the documentation: import { createBundler } from 'create-bundler' and call it correctly.
Upgrade
Version history
0.4.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

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