parcel-bundler-without-deasync
raw JSON → 9.99.10 verified Fri May 01 auth: no javascript abandoned
A modified fork of Parcel v1.10.3 with the problematic native dependency 'deasync' removed. Parcel is a zero-configuration web application bundler offering fast builds via multicore parallelism. This specific release (v9.99.10, based on Parcel 1.10.3) was created to avoid installation issues caused by deasync, which often fails on non-standard Node.js environments. However, note that this package is outdated compared to the current Parcel v2.x and is not actively maintained. Use the official Parcel v2 for new projects.
Common errors
error Cannot find module 'parcel-bundler-without-deasync' ↓
cause Package not installed or typo in import.
fix
Run 'npm install --save-dev parcel-bundler-without-deasync' and ensure correct import.
error Bundler is not a constructor ↓
cause Wrong use of named import instead of default.
fix
Use 'import Bundler from ...' (default) not 'import { Bundler } from ...'.
Warnings
breaking Package is based on Parcel v1.10.3 and does not include any updates from Parcel v2+. ↓
fix Use the official parcel package (v2.x) for current features and security fixes.
deprecated This fork is unmaintained and should not be used in new projects. ↓
fix Switch to parcel v2.
gotcha The deasync dependency has been removed, but this may break code relying on synchronous file operations via deasync. ↓
fix Do not use the original Parcel v1 API that required deasync.
Install
npm install parcel-bundler-without-deasync yarn add parcel-bundler-without-deasync pnpm add parcel-bundler-without-deasync Imports
- Bundler wrong
const Bundler = require('parcel-bundler-without-deasync')correctimport Bundler from 'parcel-bundler-without-deasync' - Bundler wrong
import { Bundler } from 'parcel-bundler-without-deasync'correctconst Bundler = require('parcel-bundler-without-deasync') - Package wrong
import { default as Parcel } from 'parcel-bundler-without-deasync'correctimport Parcel from 'parcel-bundler-without-deasync'
Quickstart
import Bundler from 'parcel-bundler-without-deasync';
import path from 'path';
const entry = path.resolve(__dirname, 'index.html');
const bundler = new Bundler(entry, {
outDir: './dist',
watch: false,
cache: true,
contentHash: true,
minify: false,
scopeHoist: false,
target: 'browser',
bundleNodeModules: false,
logLevel: 3,
});
bundler.bundle().then(() => {
console.log('Build complete');
}).catch(err => {
console.error(err);
});