Registry / web-framework / parcel-bundler-vue

parcel-bundler-vue

JSON →
library3.0.0jsnpmunverified

Parcel is a zero-configuration web application bundler with a focus on speed. Current stable version is v2.16.4 (as of release notes). It features multicore compilation, filesystem caching, and automatic transpilation (Babel, PostCSS, PostHTML) without plugins. It supports code splitting via dynamic import, hot module replacement, and includes a development server. Parcel differentiates itself from Webpack and Browserify by requiring no configuration for most projects. It is actively maintained with frequent releases (multiple minor versions per year). It uses Rust-based transformers for HTML/SVG as of v2.15.0.

npm install parcel-bundler-vue
INSTALL
IMPORT
SIG · PARCEL-BUNDLER-VUE
P
parcel-bundler-vue
web-frameworkjavascriptv3.0.0
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.

Parcel
import Parcel from 'parcel-bundler'
import { Parcel } from 'parcel-bundler'
Default import; the package exposes a single class as default export.
BundleResult
import type { BundleResult } from 'parcel-bundler'
import { BundleResult } from 'parcel-bundler'
BundleResult is a TypeScript type, use type import.
ParcelOptions
import type { ParcelOptions } from 'parcel-bundler'
const { ParcelOptions } = require('parcel-bundler')
ParcelOptions is an interface; use type import in TypeScript.

Basic usage of Parcel bundler: create a bundler instance for an HTML entry point and run a build programmatically.

const Parcel = require('parcel-bundler'); const path = require('path'); // Single entry point const file = path.join(__dirname, 'index.html'); // Initialize bundler using a file path and options const bundler = new Parcel(file, { outDir: './dist', publicUrl: './', watch: false, cache: true, cacheDir: '.cache', contentHash: true, global: 'myModule', minify: false, scopeHoist: false, target: 'browser', bundleNodeModules: false, logLevel: 3, hmr: false, hmrHostname: '', hmrPort: 0, sourceMaps: false, detailedReport: false, autoinstall: false, }); bundler.bundle().then(() => console.log('Build complete!'));
parcel --version
Debug
Known issues
gotchaParcel uses filesystem caching by default; stale caches can cause incorrect builds after upgrading.
fix
Delete the .cache directory before building after a major upgrade: rm -rf .cache && parcel build
affects: >=2.0.0
breakingParcel v2 is a complete rewrite from v1. Old plugins and configurations are not compatible.
fix
Migrate from v1 to v2: remove deprecated options and use @parcel/config-default or custom configs. See migration guide.
affects: >=2.0.0
deprecatedThe parcel-bundler npm package deprecated in favor of parcel with separate packages (e.g., @parcel/core). The package still works but is not recommended for new projects.
fix
Use the parcel package directly: npm install --save-dev parcel && parcel build
affects: >=2.0.0
gotchaParcel does not support all CommonJS patterns; it expects ESM-like imports for proper tree-shaking.
fix
Use ES module syntax (import/export) in your source files for best results.
affects: >=2.0.0
breakingIn v2.15.0, Rust-based HTML/SVG transformer replaced the previous JS implementation, potentially causing different output for custom HTML handling.
fix
Review HTML minification and transform results; test with updated Parcel.
affects: >=2.15.0
Errors
Common errors & fixes
Cannot find module 'parcel-bundler'
Package is not installed or installed in a wrong directory.
fix
Run 'npm install --save-dev parcel-bundler' in your project root.
Couldn't find a bundler for file type: .vue
Parcel does not have built-in support for Vue single-file components.
fix
Install a Parcel Vue plugin: 'npm install --save-dev @parcel/transformer-vue'
ENOENT: no such file or directory, open '.../node_modules/parcel-bundler/src/builtins/bundle-url.js'
Corrupted node_modules: missing Parcel built-in files.
fix
Delete node_modules and run 'npm install'.
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

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